Adam10/27/2022, 1:49 PM
utility that my CI/CD uses that will create and apply deployments when flows change. Instead of complicated bash, it’s easier to do it in Python. However, I’m unclear how I can get the
object from a filepath in this case:
In Prefect v1, there was a useful utility called
deployment = Deployment.build_from_flow( flow=my_flow, # how do i get from a filepath to the flow name="s3-example" )
— my question is does such a utility exist in v2? Or alternatively, is there a better way of doing this?
from prefect.utilities.storage import extract_flow_from_file
Kalise Richmond10/27/2022, 4:01 PM
Adam10/28/2022, 6:07 PM
object from a given filename i.e.
. As we wanted to do something like
which would be called by CI and then create the Deployment. Make more sense?
Kalise Richmond10/28/2022, 9:51 PM