Hello - I’d like to automatically deploy a flow from within a CI/CD pipeline. I run into import errors and am curious if there is some registration pattern that doesn’t require the environment prefect is installed into to also have the flow dependencies installed for serialization? Ideally I’d like to run some CI/CD pipeline using the prefect docker image (but not necessarily install
from within the pipeline. Realistically I could probably use the container that I am running the flow from within but am curious if there is an easier way. Thanks.
k
Kevin Kho
06/14/2022, 6:09 PM
There is a hacky way to move the imports inside the tasks or to try-except the imports. Moving the imports inside will defer execution and you won’t need them in the CI/CD
r
Rio McMahon
06/14/2022, 6:30 PM
Is it truly hacky if it works? 🤓 Thanks for the help!
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.