https://prefect.io logo
Title
v

Vackar Afzal

05/31/2022, 1:16 PM
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
Or you need to package it in a Docker container yourself
v

Vackar Afzal

05/31/2022, 2:43 PM
Cool, thanks Kevin