prefect.server.api.flow_run_states

Routes for interacting with flow run state objects.

Functions

read_flow_run_state

read_flow_run_state(flow_run_state_id: UUID = Path(..., description='The flow run state id', alias='id'), db: PrefectDBInterface = Depends(provide_database_interface)) -> schemas.states.State
Get a flow run state by id. For more information, see https://docs.prefect.io/v3/develop/write-flows#final-state-determination.

read_flow_run_states

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