prefect.server.api.task_run_states

Routes for interacting with task run state objects.

Functions

read_task_run_state

read_task_run_state(task_run_state_id: UUID = Path(..., description='The task run state id', alias='id'), db: PrefectDBInterface = Depends(provide_database_interface)) -> schemas.states.State
Get a task run state by id. For more information, see https://docs.prefect.io/v3/develop/write-tasks.

read_task_run_states

read_task_run_states(task_run_id: UUID, db: PrefectDBInterface = Depends(provide_database_interface)) -> List[schemas.states.State]
Get states associated with a task run.