Skip to content

Commit 888cde0

Browse files
authored
Apply suggestions from code review
1 parent 0f045a2 commit 888cde0

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

src/content/docs/queues/configuration/pause-purge.mdx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,31 @@ import { WranglerConfig, Type, MetaInfo } from "~/components";
88

99
## Pause Delivery
1010

11-
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.
1212

1313
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.
1414

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).
1616

1717
### Pause and resume delivery using Wrangler
18+
1819
The following command will pause message delivery from your queue:
20+
1921
```sh
2022
$ npx run wrangler queues pause-delivery <QUEUE-NAME>
2123
```
24+
2225
- `queue-name` <Type text="string" /> <MetaInfo text="required" />
23-
- The name of the queue which delivery should be paused.
26+
- The name of the queue for which delivery should be paused.
2427

2528
The following command will resume message delivery:
29+
2630
```sh
2731
$ npx run wrangler queues resume-delivery <QUEUE-NAME>
2832
```
33+
2934
- `queue-name` <Type text="string" /> <MetaInfo text="required" />
30-
- The name of the queue from which delivery should be resumed.
35+
- The name of the queue for which delivery should be resumed.
3136

3237
### What happens to HTTP Pull consumers with a paused queue?
3338
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.
3742

3843
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.
3944

40-
:::note
45+
:::caution
4146
Purging a queue is an irreversible operation. Make sure to use this operation carefully.
4247
:::
4348

44-
### Purge queue using wrangler
49+
### Purge queue using Wrangler
4550
The following command will purge messages from your Queue. You will be prompted to enter the Queue name to confirm the operation.
4651
```sh
4752
$ npx run wrangler queues purge <QUEUE-NAME>

src/content/docs/workers/wrangler/commands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ Permanently delete all messages in a queue.
13561356
wrangler queues purge <queue-name>
13571357
```
13581358
- `queue-name` <Type text="string" /> <MetaInfo text="required" />
1359-
- The name of the queue which delivery should be purged.
1359+
- The name of the queue for which delivery should be purged.
13601360

13611361
### `pause-delivery`
13621362

0 commit comments

Comments
 (0)