Replies: 1 comment 4 replies
-
Once a module is imported once it won't be re-imported even if you update it in the background (as your example here does); to do this correctly, you should use a Prefect backend (Cloud would be easiest) and specify a docker image for your Flow's Run Config that you routinely update asynchronously. This way, each run of the flow will use the latest version of your Docker build without updating your Flow code. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to find a solution for the following. I have a flow that is meant to run forever. A task in that flow uses an externally imported library (let's call it
mylib
), which may change during the lifetime of the flow. How can I make sure I'm always using the latest version ofmylib
?I was thinking something along these lines, but I'm not sure it works and I'd like to know if there's a better solution for it.
The point is that the
pip install
command will actually point to a url, so that it gets the freshest code on master every time.Beta Was this translation helpful? Give feedback.
All reactions