prefect.server.models.flows
Functions for interacting with flow ORM objects.
Intended for internal use by the Prefect REST API.
Functions
create_flow
session: a database sessionflow: a flow model
- orm_models.Flow: the newly-created or existing flow
update_flow
session: a database sessionflow_id: the flow id to updateflow: a flow update model
- whether or not matching rows were found to update
read_flow
session: A database sessionflow_id: a flow id
- orm_models.Flow: the flow
read_flow_by_name
session: A database sessionname: a flow name
- orm_models.Flow: the flow
read_flows
session: A database sessionflow_filter: only select flows that match these filtersflow_run_filter: only select flows whose flow runs match these filterstask_run_filter: only select flows whose task runs match these filtersdeployment_filter: only select flows whose deployments match these filterswork_pool_filter: only select flows whose work pools match these filtersoffset: Query offsetlimit: Query limit
- List[orm_models.Flow]: flows
count_flows
session: A database sessionflow_filter: only count flows that match these filtersflow_run_filter: only count flows whose flow runs match these filterstask_run_filter: only count flows whose task runs match these filtersdeployment_filter: only count flows whose deployments match these filterswork_pool_filter: only count flows whose work pools match these filters
- count of flows
delete_flow
session: A database sessionflow_id: a flow id
- whether or not the flow was deleted