Overview
Toggle the paused state of a queue. When a queue is paused, no new runs will be dequeued and started. Runs that are currently executing continue to completion. Queues can be addressed by:- Queue ID (
queue_1234) - Task ID (
type: "task") — targets the default queue for that task - Custom queue name (
type: "custom") — targets a named custom queue
Authentication with a secret key is required.
Endpoint
Path parameters
The queue ID (e.g.
queue_1234), or the task/custom queue name when using the type body parameter.Request body
"pause" to pause the queue, or "resume" to resume it.How to interpret
queueParam. One of:"id"(default) — treat as a queue ID"task"— treat as a task ID and target the task’s default queue"custom"— treat as a custom queue name
Response
Returns the updated Queue object:Queue ID.
Queue name.
task or custom.Runs currently executing.
Runs currently waiting.
The updated pause state.
Effective concurrency limit.