create
Create a new queue.The name of the queue to create
Options
How long a published message should be delayed for, in seconds. Must be between 0 and 43200 (12 hours)
How long to retain a message in the queue, in seconds. Must be between 60 and 86400 if on free tier, otherwise must be between 60 and 1209600 (14 days)
Example
wrangler.json
delete
Delete a queue.The name of the queue to delete
Example
list
List all queues in your account.Options
Page number for pagination
Example
info
Get detailed information about a queue.The name of the queue
Example
- Queue ID and name
- Creation and modification timestamps
- Number of producers and consumers
- Consumer details (Worker consumers or HTTP Pull consumers)
update
Update queue settings.The name of the queue to update
Options
How long a published message should be delayed for, in seconds. Must be between 0 and 43200
How long to retain a message in the queue, in seconds. Must be between 60 and 86400 if on free tier, otherwise must be between 60 and 1209600
Example
pause
Pause message delivery for a queue.The name of the queue to pause
Example
resume
Resume message delivery for a paused queue.The name of the queue to resume
Example
purge
Purge all messages from a queue.The name of the queue to purge
Options
Skip the confirmation dialog and forcefully purge the queue
Example
consumer worker
Manage Worker consumers for a queue.consumer worker add
consumer worker add
Add a Worker consumer to a queue.
Name of the queue to configure
Name of the consumer Worker script
Options
Maximum number of messages per batch
Maximum number of seconds to wait to fill a batch with messages
Maximum number of retries for each message
Queue to send messages that failed to be consumed
The maximum number of concurrent consumer Worker invocations. Must be a positive integer
The number of seconds to wait before retrying a message
Example
consumer worker remove
consumer worker remove
consumer http-pull
Manage HTTP Pull consumers for a queue.consumer http-pull add
consumer http-pull add
Add an HTTP Pull consumer to a queue.
Name of the queue for the consumer
Options
Maximum number of messages per batch
Maximum number of retries for each message
Queue to send messages that failed to be consumed
The number of seconds a message will wait for an acknowledgement before being returned to the queue
The number of seconds to wait before retrying a message
Example
consumer http-pull remove
consumer http-pull remove
subscription
Manage event subscriptions for a queue.subscription create
subscription create
Create a new event subscription for a queue.
The name of the queue to create the subscription for
Options
The event source type. Valid values:
kv.namespacer2.bucketsuperSlurper.jobvectorize.indexworkersAi.modelworkersBuilds.workerworkflows.workflow
Comma-separated list of event types to subscribe to
Name for the subscription (auto-generated if not provided)
Whether the subscription should be active
Workers AI model name (required for
workersAi.model source)Worker name (required for
workersBuilds.worker source)Workflow name (required for
workflows.workflow source)Example
subscription delete
subscription delete
subscription list
subscription list
subscription get
subscription get
subscription update
subscription update
Update an existing event subscription.
The name of the queue
Options
The ID of the subscription to update
New name for the subscription
Comma-separated list of event types to subscribe to
Whether the subscription should be active
Output in JSON format
Example
Configuration
Configure queues in your Worker configuration file:Producer Configuration
wrangler.json
Consumer Configuration
wrangler.json