prefect.server.models.deployments
create_deployment
session
: a database sessiondeployment
: a deployment modelupdate_deployment
session
: a database sessiondeployment_id
: the ID of the deployment to modifydeployment
: changes to a deployment modelread_deployment
session
: A database sessiondeployment_id
: a deployment idread_deployment_by_name
session
: A database sessionname
: a deployment nameflow_name
: the name of the flow the deployment belongs toread_deployments
session
: A database sessionoffset
: Query offsetlimit
: Query limitflow_filter
: only select deployments whose flows match these criteriaflow_run_filter
: only select deployments whose flow runs match these criteriatask_run_filter
: only select deployments whose task runs match these criteriadeployment_filter
: only select deployment that match these filterswork_pool_filter
: only select deployments whose work pools match these criteriawork_queue_filter
: only select deployments whose work pool queues match these criteriasort
: the sort criteria for selected deployments. Defaults to name
ASC.count_deployments
session
: A database sessionflow_filter
: only count deployments whose flows match these criteriaflow_run_filter
: only count deployments whose flow runs match these criteriatask_run_filter
: only count deployments whose task runs match these criteriadeployment_filter
: only count deployment that match these filterswork_pool_filter
: only count deployments that match these work pool filterswork_queue_filter
: only count deployments that match these work pool queue filtersdelete_deployment
session
: A database sessiondeployment_id
: a deployment idschedule_runs
session
: a database sessiondeployment_id
: the id of the deployment to schedulestart_time
: the time from which to start scheduling runsend_time
: runs will be scheduled until at most this timemin_time
: runs will be scheduled until at least this far in the futuremin_runs
: a minimum amount of runs to schedulemax_runs
: a maximum amount of runs to schedulestart_time
max_runs
runs will be generatedend_time
is reachedmin_runs
runs will be generatedstart_time
+ min_time
is reachedcheck_work_queues_for_deployment
A.contains(B)
should be interpreted as “True if A
contains B”.create_deployment_schedules
session
: A database sessiondeployment_id
: a deployment idschedules
: a list of deployment schedule create actionsread_deployment_schedules
session
: A database sessiondeployment_id
: a deployment idupdate_deployment_schedule
session
: A database sessiondeployment_schedule_id
: a deployment schedule idschedule
: a deployment schedule update actiondelete_schedules_for_deployment
session
: A database sessiondeployment_id
: a deployment iddelete_deployment_schedule
session
: A database sessiondeployment_schedule_id
: a deployment schedule idmark_deployments_ready
mark_deployments_not_ready
with_system_labels_for_deployment
with_system_labels_for_deployment_flow_run
session
: Database sessiondeployment
: The deployment the flow run is created fromuser_supplied_labels
: Optional user-supplied labels to include