Miroslav Rác
01/28/2022, 1:35 PMFailed to load and execute Flow's environment: ModuleNotFoundError("No module named '/Users/miro/'")
… Obviously, when I created my flow, my local path has been probably been pickled and so it cannot run on another machine.
Is this expected behavior? How can I run flows created on a different machine?Anna Geller
GitHub
, S3
, Docker
, etc.). During a flow run execution, Prefect pulls the flow from the storage location and runs it.
If users don’t specify any storage, it defaults to a Local
storage, which is a serialized version of the flow stored in the ~/.prefect/flows
folder. At runtime, the flow is retrieved from this file.
The error you see happens when you use the default Local
storage during the registration, and then you run the flow on a different machine (or a container) that doesn’t have the flow file (exactly as you noticed yourself).Miroslav Rác
01/28/2022, 2:08 PMAnna Geller
Miroslav Rác
01/28/2022, 7:40 PMAnna Geller
Miroslav Rác
01/28/2022, 7:52 PMcreate_flow_run
looks like a good solution, thank you very much. Looks like we will opt for Prefect, I have better feeling about it.
btw the blog article you have linked has the gists embeds blocked. but I think I get the point. thank you I appreciate your helpAnna Geller
Miroslav Rác
01/28/2022, 7:57 PMAnna Geller