Bertangela Loret de Mola

09/23/2022, 2:14 AM
Hi there. I'm using prefect v1. I'm adding a task to a custom task file (library) but when executing the flow from prefect cloud, I'm getting the error: _Failed to load and execute Flow's environment: ImportError(\"cannot import name 'task_name' from 'tasks.myLib' (/opt/prefect/tasks/\")_ Only thing I found is that the task definition in tasks/ is separated by one blank line from the previous one. Is it mandatory to separate task's definitions with at least 2 blank lines?
Well, the blank lines didn't solved it. The new task exist in the task file but the flow didn't recognize it. Any clue?