prefect.server.api.ui.flows

Functions

count_deployments_by_flow

count_deployments_by_flow(flow_ids: List[UUID] = Body(default=..., embed=True, max_items=200), db: PrefectDBInterface = Depends(provide_database_interface)) -> Dict[UUID, int]
Get deployment counts by flow id.

next_runs_by_flow

next_runs_by_flow(flow_ids: List[UUID] = Body(default=..., embed=True, max_items=200), db: PrefectDBInterface = Depends(provide_database_interface)) -> Dict[UUID, Optional[SimpleNextFlowRun]]
Get the next flow run by flow id.

Classes

SimpleNextFlowRun

Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

validate_next_scheduled_start_time

validate_next_scheduled_start_time(cls, v: DateTime | datetime) -> DateTime