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/myLib.py)\")_ Only thing I found is that the task definition in tasks/myLib.py is separated by one blank line from the previous one. Is it mandatory to separate task's definitions with at least 2 blank lines?
Bertangela Loret de Mola
09/23/2022, 1:51 PM
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?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.