prefect flow

prefect flow [OPTIONS] COMMAND [ARGS]...

View and serve flows.

prefect flow ls

prefect flow ls [OPTIONS]

View flows.

--limit

prefect flow serve

prefect flow serve [OPTIONS] ENTRYPOINT

Serve a flow via an entrypoint.

ENTRYPOINT
string
required

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]

--name

The name to give the deployment created for the flow.

--description

The description to give the created deployment. If not provided, the description will be populated from the flow’s description.

-v

A version to give the created deployment.

-t

One or more optional tags to apply to the created deployment.

--cron

A cron string that will be used to set a schedule for the created deployment.

--interval

An integer specifying an interval (in seconds) between scheduled runs of the flow.

--anchor-date

The start date for an interval schedule.

--rrule

An RRule that will be used to set a schedule for the created deployment.

--timezone

Timezone to used scheduling flow runs e.g. ‘America/New_York’

--pause-on-shutdown

If set, provided schedule will be paused when the serve command is stopped. If not set, the schedules will continue running.

--limit

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.

--global-limit

The maximum number of concurrent runs allowed across all served flow instances associated with the same deployment.