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
string
required
The queue ID (e.g.
queue_1234), or the task/custom queue name when using the type body parameter.Request body
string
required
"pause" to pause the queue, or "resume" to resume it.string
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:string
Queue ID.
string
Queue name.
string
task or custom.integer
Runs currently executing.
integer
Runs currently waiting.
boolean
The updated pause state.
integer | null
Effective concurrency limit.