hey all! is there a way to get Prefect to Pickle flows including dependencies?
k
Kevin Kho
04/12/2022, 11:21 PM
Not at the moment. Might be possible in the future due to this
cloudpickle
change
Kevin Kho
04/12/2022, 11:22 PM
But actually for Orion the goal this quarter is to make packaging easier to do in general whatever that means (pickle or not) such that we can handle more of that for the users
Kevin Kho
04/12/2022, 11:22 PM
We do hear that a lot “why can’t Prefect install my Github repo for me?”
c
Christian Nuss
04/13/2022, 12:46 AM
yea i keep hitting walls running containers and Flows that are like
Copy code
from something import thing
with Flow(...):
thing()
then i get
No module named 'something'
all the time and am hacking the Docker containers like mad to get the
something
installed using
pip install -e something
if you have any workarounds, that'd be amazing!
k
Kevin Kho
04/13/2022, 12:47 AM
Clone and pip install the repo as an ENTRYPOINT of your container
c
Christian Nuss
04/13/2022, 12:49 AM
Thats a good idea, but a couple downsides i can imagine with that:
• super slow flow startup time for a flow?
• need to inject a SSH key to clone a private repo, somewhere?
Christian Nuss
04/13/2022, 12:52 AM
does prefect have the ability to augment/customize to the pickling system? could i "tell it what else to pickle" when running register flows?
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.