prefect flow-run
Interact with flow runs.
prefect flow-run inspect
View details about a flow run.
prefect flow-run ls
View recent flow runs or flow runs for specific flows.
Arguments:
flow_name: Name of the flow
limit: Maximum number of flow runs to list. Defaults to 15.
state: Name of the flow run’s state. Can be provided multiple times. Options are ‘SCHEDULED’, ‘PENDING’, ‘RUNNING’, ‘COMPLETED’, ‘FAILED’, ‘CRASHED’, ‘CANCELLING’, ‘CANCELLED’, ‘PAUSED’, ‘SUSPENDED’, ‘AWAITINGRETRY’, ‘RETRYING’, and ‘LATE’.
state_type: Type of the flow run’s state. Can be provided multiple times. Options are ‘SCHEDULED’, ‘PENDING’, ‘RUNNING’, ‘COMPLETED’, ‘FAILED’, ‘CRASHED’, ‘CANCELLING’, ‘CANCELLED’, ‘CRASHED’, and ‘PAUSED’.
Examples:
$ prefect flow-runs ls —state Running
$ prefect flow-runs ls —state Running —state late
$ prefect flow-runs ls —state-type RUNNING
$ prefect flow-runs ls —state-type RUNNING —state-type FAILED
prefect flow-run delete
Delete a flow run by ID.
prefect flow-run cancel
Cancel a flow run by ID.
prefect flow-run logs
View logs for a flow run.
prefect flow-run execute
Was this page helpful?