prefect flow
View and serve flows.
prefect flow ls
View flows.
Options
Options
prefect flow serve
Serve a flow via an entrypoint.
Arguments
Arguments
The path to a file containing a flow and the name of the flow function in the format `./path/to/file.py:flow_func_name`. [required]
Options
Options
The name to give the deployment created for the flow.
The description to give the created deployment. If not provided, the description will be populated from the flow’s description.
A version to give the created deployment.
One or more optional tags to apply to the created deployment.
A cron string that will be used to set a schedule for the created deployment.
An integer specifying an interval (in seconds) between scheduled runs of the flow.
The start date for an interval schedule.
An RRule that will be used to set a schedule for the created deployment.
Timezone to used scheduling flow runs e.g. ‘America/New_York’
If set, provided schedule will be paused when the serve command is stopped. If not set, the schedules will continue running.
The maximum number of runs that can be executed concurrently by the created runner; only applies to this served flow. To apply a limit across multiple served flows, use global_limit.
The maximum number of concurrent runs allowed across all served flow instances associated with the same deployment.