Skip to content

Commit 4896c12

Browse files
committed
[Workflows] Updated retention period
1 parent 9eb3fcf commit 4896c12

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Default instance retention for new Workflows on Workers Paid is seven days
3+
description: New Workflows on Workers Paid retain instance state for seven days by default.
4+
products:
5+
- workflows
6+
date: 2026-08-27 12:00:00 UTC
7+
---
8+
9+
import { TypeScriptExample } from "~/components";
10+
11+
[Workflows](/workflows/) created on or after August 27, 2026, on the Workers Paid plan retain completed and errored instance state for seven days by default instead of 30 days.
12+
13+
The retention period for existing Workflows is unchanged. The Workers Free plan retains its three-day default and limit.
14+
15+
To set the retention period for a Workflow instance, specify `successRetention`, `errorRetention`, or both:
16+
17+
<TypeScriptExample>
18+
19+
```ts
20+
const instance = await env.MY_WORKFLOW.create({
21+
retention: {
22+
successRetention: "1 day",
23+
errorRetention: "7 days",
24+
},
25+
});
26+
```
27+
28+
</TypeScriptExample>
29+
30+
You can also set the retention period per Workflow and per instance in the [Cloudflare dashboard](https://dash.cloudflare.com/?to=/:account/workers/workflows).
31+
32+
For retention details, refer to [Workflows pricing](/workflows/reference/pricing/) and the [`WorkflowInstanceCreateOptions` API reference](/workflows/build/workers-api/#workflowinstancecreateoptions).

0 commit comments

Comments
 (0)