prefect.server.worker_communication.cleanup_queue
Functions
record_cleanup_queue_dead_letter
record_cleanup_queue_lease_expiry_result
record_cleanup_queue_operation
get_worker_cleanup_queue
Classes
CleanupQueueMessage
Methods:
model_validate_list
reset_fields
_reset_fields set.
Returns:
- A new instance of the model with the reset fields.
CleanupQueueReservation
CleanupQueueDeadLetter
Methods:
model_validate_list
reset_fields
_reset_fields set.
Returns:
- A new instance of the model with the reset fields.
CleanupQueueOperationResult
Methods:
model_validate_list
reset_fields
_reset_fields set.
Returns:
- A new instance of the model with the reset fields.
CleanupQueueLeaseExpiryResult
Methods:
model_validate_list
reset_fields
_reset_fields set.
Returns:
- A new instance of the model with the reset fields.
CleanupQueueWakeup
Methods:
model_validate_list
reset_fields
_reset_fields set.
Returns:
- A new instance of the model with the reset fields.
WorkerCleanupQueue
Interface for cleanup delivery queue storage.
Implementations own cleanup message reservation correctness. WebSocket
dispatchers may keep process-local routing state, but ack, release, renew,
lease expiry, retry accounting, and DLQ transitions must go through this
queue. Implementations own the server retry and lease policy and completed
idempotency retention semantics.
Methods:
ack
enqueue
message_id and idempotency_key as stable
producer identifiers within a work pool, returning the existing message
for repeated enqueue attempts instead of creating duplicates. The
optional work_queue_id is advisory targeting metadata.
expire_leases
work_pool_id is provided.
read_dead_letter
read_message
read_wakeup_sequence
after cursor when waiting for future
wakeups.
release
renew
reserve
preferred_work_queue_ids should be
treated as an advisory preference, with pool-wide fallback controlled by
allow_fallback_to_any_queue.
wait_for_wakeup
after.
Returns the next wakeup when one is observed, or None when timeout
elapses before a newer wakeup is available.