Hi All, I am trying out Prefect 2 for the first time
I have a flow that imports some functions from another (local) python module
In prefect 1, we were able to do something like
storage.files.update(THE_FILE)
to bring in the dependency
What’s the recommended approach to achieve something similar in prefect 2
k
Kevin Kho
05/31/2022, 2:21 PM
The packaging story is still in progress for Prefect 2.0. But this is something we aim to make easier for users. If you are using
SubprocessFlowRunner
, you probably need to start the agent in a directory where it can pull those additional files
Kevin Kho
05/31/2022, 2:21 PM
Or you need to package it in a Docker container yourself
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.