Skip to main content

prefect flow-run

Interact with flow runs.

prefect flow-run inspect

View details about a flow run.

Arguments

string
required

Options

Open the flow run in a web browser.
Specify an output format. Currently supports: json

prefect flow-run ls

View recent flow runs or flow runs for specific flows.

Options

Name of the flow
Maximum number of flow runs to list
Name of the flow run’s state
Type of the flow run’s state
Specify an output format. Currently supports: json
Example:

prefect flow-run delete

Delete a flow run by ID.

Arguments

string
required

prefect flow-run cancel

Cancel a flow run by ID.

Arguments

string
required

prefect flow-run retry

Retry a failed or completed flow run.The flow run can be specified by either its UUID or its name. If multiple flow runs have the same name, you must use the UUID to disambiguate.If the flow run has an associated deployment, it will be scheduled for retry and a worker will pick it up. If there is no deployment, you must provide an —entrypoint to the flow code, and the flow will execute locally.

Arguments

string
required

Options

The path to a file containing the flow to run, and the name of the flow function, in the format path/to/file.py:flow_function_name. Required if the flow run does not have an associated deployment.
Example:

prefect flow-run logs

View logs for a flow run.

Arguments

string
required

Options

Show the first 20 logs instead of all logs.
Number of logs to show when using the —head or —tail flag. If None, defaults to 20.
Reverse the logs order to print the most recent logs first
Show the last 20 logs instead of all logs.
Specify an output format. Currently supports: json

prefect flow-run watch

Watch a flow run until it reaches a terminal state.

Arguments

string
required

Options

Timeout in seconds.

prefect flow-run execute

Execute a flow run by ID.

Arguments

string