<@ULVA73B9P> what is the most updated way to deplo...
# ask-marvin
k
@Marvin what is the most updated way to deploy a prefect flow?
m
To deploy a Prefect flow using the most updated methods, you can use the following approaches: 1. Deployments: Prefect 3.x allows you to create deployments, which are server-side representations of flows. These deployments store metadata for remote orchestration, including schedule, location, and execution parameters. You can manage flow runs through an API and UI, which enables triggering, canceling, and scheduling runs. More details can be found in the Prefect deployment overview. 2. Using
prefect.yaml
: You can define deployment specifications in a
prefect.yaml
file. Running
prefect deploy
in a directory with this file will load and resolve configurations, register the deployment, and overlay any CLI-provided flags. This YAML file allows you to manage build, push, and pull steps for deployments. More details on this process are available in the Prefect YAML documentation. 3.
flow serve
CLI
: A recent enhancement adds a "limit" option to the
prefect flow serve
CLI, which you might find useful for controlling deployment behavior. For the latest updates and changes, you can view the Prefect release notes. These methods ensure that your flows are deployed with the latest features and best practices in Prefect 3.x.
n
you might be interested in these examples https://github.com/zzstoatzz/prefect-pack it has both of the main 2 ways to create deployments • prefct.yaml deployments • .deploy()
k
thanks, @Nate! fast as always. the deploy() works on prefect 2.14 too?
n
yes!
both options should work on 2.14
k
thanks a lot ❤️
catjam 1