Skip to main content

prefect.server.api.flow_runs

Routes for interacting with flow run objects.

Functions

create_flow_run

Create a flow run. If a flow run with the same flow_id and idempotency key already exists, the existing flow run will be returned. If no state is provided, the flow run will be created in a PENDING state. For more information, see https://docs.prefect.io/v3/concepts/flows.

update_flow_run

Updates a flow run.

count_flow_runs

Query for flow runs.

average_flow_run_lateness

Query for average flow-run lateness in seconds.

flow_run_history

Query for flow run history data across a given range and interval.

read_flow_run

Get a flow run by id.

read_flow_run_graph_v1

Get a task run dependency map for a given flow run.

read_flow_run_graph_v2

Get a graph of the tasks and subflow runs for the given flow run

resume_flow_run

Resume a paused flow run.

read_flow_runs

Query for flow runs.

delete_flow_run

Delete a flow run by id.

delete_flow_run_logs

bulk_delete_flow_runs

Bulk delete flow runs matching the specified filter criteria. Returns the IDs of flow runs that were deleted.

bulk_set_flow_run_state

Bulk set state for flow runs matching the specified filter criteria. Returns the orchestration results for each flow run.

set_flow_run_state

Set a flow run state, invoking any orchestration rules.

create_flow_run_input

Create a key/value input for a flow run.

filter_flow_run_input

Filter flow run inputs by key prefix

read_flow_run_input

Create a value from a flow run input

delete_flow_run_input

Delete a flow run input

paginate_flow_runs

Pagination query for flow runs.

download_logs

Download all flow run logs as a CSV file, collecting all logs until there are no more logs to retrieve.

update_flow_run_labels

Update the labels of a flow run.