You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can pause delivery of messages from your Queue to any connected consumers. Pausing a queue is useful to manage downtime (such as if your consumer Worker is unhealthy), without losing any messages.
11
+
You can pause delivery of messages from your Queue to any connected consumers. Pausing a Queue is useful when managing downtime (for example, if your consumer Worker is unhealthy) without losing any messages.
12
12
13
13
Queues continue to receive and store messages even while delivery is paused. Messages in a paused queue are still subject to expiry, if the messages become older than the queue message retention period.
14
14
15
-
Pausing affects both [push-based consumer Workers](/queues/reference/how-queues-works#consumers), and [pull based consumers](/queues/configuration/pull-consumers).
15
+
Pausing affects both [push-based consumer Workers](/queues/reference/how-queues-works#consumers) and [pull based consumers](/queues/configuration/pull-consumers).
16
16
17
17
### Pause and resume delivery using Wrangler
18
+
18
19
The following command will pause message delivery from your queue:
20
+
19
21
```sh
20
22
$ npx run wrangler queues pause-delivery <QUEUE-NAME>
- The name of the queue from which delivery should be resumed.
35
+
- The name of the queue for which delivery should be resumed.
31
36
32
37
### What happens to HTTP Pull consumers with a paused queue?
33
38
When a queue is paused, messages cannot be pulled by an [HTTP pull based consumer](/queues/configuration/pull-consumers). Requests to pull messages will receive a `409` response, along with an error message stating `queue_delivery_paused`.
@@ -37,11 +42,11 @@ Purging a queue permanently deletes any messages currently stored in the Queue.
37
42
38
43
Note that any in flight messages, which are currently being processed by consumers, might still be processed. Messages sent to a queue during a purge operation might not be purged. Any delayed messages will also be deleted from the Queue.
39
44
40
-
:::note
45
+
:::caution
41
46
Purging a queue is an irreversible operation. Make sure to use this operation carefully.
42
47
:::
43
48
44
-
### Purge queue using wrangler
49
+
### Purge queue using Wrangler
45
50
The following command will purge messages from your Queue. You will be prompted to enter the Queue name to confirm the operation.
0 commit comments