Skip to main content

prefect.server.api.task_runs

Routes for interacting with task run objects.

Functions

create_task_run

Create a task run. If a task run with the same flow_run_id, task_key, and dynamic_key already exists, the existing task run will be returned. If no state is provided, the task run will be created in a PENDING state. For more information, see https://docs.prefect.io/v3/concepts/tasks.

update_task_run

Updates a task run.

count_task_runs

Count task runs.

task_run_history

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

read_task_run

Get a task run by id.

read_task_runs

Query for task runs.

paginate_task_runs

Pagination query for task runs.

delete_task_run

Delete a task run by id.

delete_task_run_logs

set_task_run_state

Set a task run state, invoking any orchestration rules.

scheduled_task_subscription