Skip to content

Commit a98ff2e

Browse files
committed
Added changelog entry for queues message retention periods
1 parent 62ddadb commit a98ff2e

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
118 KB
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Customize Queue message retention periods
3+
description: Customize the retention period for a queue, starting from 60 seconds to a maximum of 14 days.
4+
products:
5+
- queues
6+
date: 2025-02-13 00:00:00 UTC
7+
---
8+
9+
You can customize a Queue's message retention period, starting from 60s to a maximum of 14 days.
10+
11+
![Customize a Queue's message retention period](~/assets/images/queues/customize-retention-period.png)
12+
13+
By default, Queues retain messages for a default of 4 days. Previously, it was impossible to change the retention period.
14+
15+
With this update, you can retain messages for up to 14 days. Or if you want your consumer to only consume newer messages, you can set the message expiry period to be as short as 60 seconds.
16+
17+
You can customize the retention period in the Queues setting on the dashboard, or using Wrangler:
18+
```bash title="Update message retention period"
19+
$ wrangler queues update my-queue --message-retention-period 5d
20+
```
21+
22+
This feature is available on all new and existing Queues. If you haven't used Cloudflare Queues before, [get started with our guide here](queues/get-started).

0 commit comments

Comments
 (0)