Skip to content

Commit f8afd62

Browse files
committed
Add changelog for automatic resource provisioning for Queues
1 parent 9f3a69d commit f8afd62

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Automatic queue provisioning
3+
description: Wrangler now creates queues automatically when you deploy Workers with queue bindings.
4+
products:
5+
- queues
6+
- workers
7+
date: 2025-01-03
8+
---
9+
10+
import { WranglerConfig } from "~/components";
11+
12+
You no longer need to create queues manually before deploying. When you run `wrangler deploy` with queue bindings in your config, Wrangler creates any missing queues automatically.
13+
14+
Add queue bindings to your Wrangler config:
15+
16+
<WranglerConfig>
17+
18+
```toml
19+
[[queues.producers]]
20+
binding = "MY_QUEUE"
21+
queue = "my-queue"
22+
23+
[[queues.consumers]]
24+
queue = "my-queue"
25+
max_batch_size = 10
26+
```
27+
28+
</WranglerConfig>
29+
30+
Then deploy:
31+
32+
```sh
33+
npx wrangler deploy
34+
```
35+
36+
If `my-queue` doesn't exist, Wrangler creates it and links it to your Worker. This works for both producer and consumer bindings. When the same queue appears in both, Wrangler creates it once.
37+
38+
This matches how [KV, D1, and R2 provisioning](/changelog/workers/2025-10-24-automatic-resource-provisioning/) works. To disable automatic provisioning, use the `--no-x-provision` flag.
39+
40+
For more on queue configuration, refer to [Configure Queues](/queues/configuration/configure-queues/).

0 commit comments

Comments
 (0)