docs/v3/api-ref/python/prefect-server-models-flow_run_states.mdx
prefect.server.models.flow_run_statesFunctions for interacting with flow run state ORM objects. Intended for internal use by the Prefect REST API.
read_flow_run_state <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/models/flow_run_states.py#L18" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>read_flow_run_state(db: PrefectDBInterface, session: AsyncSession, flow_run_state_id: UUID) -> Union[orm_models.FlowRunState, None]
Reads a flow run state by id.
Args:
session: A database sessionflow_run_state_id: a flow run state idReturns:
read_flow_run_states <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/models/flow_run_states.py#L36" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>read_flow_run_states(db: PrefectDBInterface, session: AsyncSession, flow_run_id: UUID) -> Sequence[orm_models.FlowRunState]
Reads flow runs states for a flow run.
Args:
session: A database sessionflow_run_id: the flow run idReturns:
delete_flow_run_state <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/models/flow_run_states.py#L60" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>delete_flow_run_state(db: PrefectDBInterface, session: AsyncSession, flow_run_state_id: UUID) -> bool
Delete a flow run state by id.
Args:
session: A database sessionflow_run_state_id: a flow run state idReturns: