prefect.server.models.work_queues
Functions for interacting with work queue ORM objects.
Intended for internal use by the Prefect REST API.
Functions
create_work_queue
session
: a database sessionwork_queue
: a WorkQueue model
- orm_models.WorkQueue: the newly-created or updated WorkQueue
read_work_queue
session
: A database sessionwork_queue_id
: a WorkQueue id
- orm_models.WorkQueue: the WorkQueue
read_work_queue_by_name
session
: A database sessionwork_queue_id
: a WorkQueue id
- orm_models.WorkQueue: the WorkQueue
read_work_queues
session
: A database sessionoffset
: Query offsetlimit
: Query limitwork_queue_filter
: only select work queues matching these filters
is_last_polled_recent
update_work_queue
session
: A database sessionwork_queue
: the work queue datawork_queue_id
: a WorkQueue id
- whether or not the WorkQueue was updated
delete_work_queue
session
: A database sessionwork_queue_id
: a WorkQueue id
- whether or not the WorkQueue was deleted
get_runs_in_work_queue
session
: A database session. work_queue_id: The work queue id.scheduled_before
: Only return runs scheduled to start before this time.limit
: An optional limit for the number of runs to return from the queue. This limit applies to the request only. It does not affect the work queue’s concurrency limit. Iflimit
exceeds the work queue’s concurrency limit, it will be ignored.
ensure_work_queue_exists
read_work_queue_status
session
: A database sessionwork_queue_id
: a WorkQueue id
- Information about the status of the work queue.