Are there any best practices for deploying prefect flows?
for example
• prefect deploy vs prefect deployment
• deploy using python file vs prefect.yaml
• prefect.yaml for flows/groups of deployments vs one prefect.yaml for all deployment
👀 1
j
Jeff Hale
04/24/2024, 12:35 PM
For work pool-based deployment creation with Python we recommend using the
flow.deploy
method (or the
deploy
function for deploying multiple deployments at once).
Use
prefect.yaml
if you prefer YAML-based deployments.
Either option is fine and both are popular.
For your last bullet point - it depends on your setup.
e
Eric Yoo
04/25/2024, 7:29 AM
Is the
deploy
function the one from the
prefect deploy
command?
for the
flow.deploy()
method, is there a way to push code to remote storage just like push_code in prefect.yaml?
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.