Skip to content

Commit 7cbf749

Browse files
committed
acrolinx
Signed-off-by: Hannah Hunter <[email protected]>
1 parent 2ac243c commit 7cbf749

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

articles/azure-functions/durable-task-scheduler/durable-task-scheduler-auto-purge.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.date: 04/28/2025
77

88
# Set autopurge retention policies for Azure Functions Durable Task Scheduler (preview)
99

10-
Orchestration history data should be purged periodically to free up storage resources. Otherwise, the app will likely observe performance degradation as history data accumulates overtime. The Durable Task Scheduler offers a lightweight, configurable autopurge feature that helps you manage orchestration data clean-up without manual intervention.
10+
Orchestration history data should be purged periodically to free up storage resources. Otherwise, the app observes performance degradation as history data accumulates overtime. The Durable Task Scheduler offers a lightweight, configurable autopurge feature that helps you manage orchestration data clean-up without manual intervention.
1111

1212
Autopurge operates asynchronously in the background, optimized to minimize system resource usage and prevent interference with other Durable Task operations. Although autopurge doesn't adhere to a strict schedule, its clean-up rate generally aligns with your orchestration scheduling rate.
1313

@@ -55,7 +55,7 @@ When configuring an autopurge retention policy, you can set either a *specific*
5555
}
5656
```
5757

58-
Add specific policies to override the default policy applied to orchestrations, regardless of status. In the example below, the second and third policies override the default policy (`"retentionPeriodInDays": 1`).
58+
Add specific policies to override the default policy applied to orchestrations, regardless of status. In the following example, the second and third policies override the default policy (`"retentionPeriodInDays": 1`).
5959
- Data associated with completed orchestrations is deleted immediately.
6060
- Data associated with failed orchestrations is purged after 60 days.
6161

@@ -141,7 +141,7 @@ PUT https://management.azure.com/subscriptions/SUBSCRIPTION_ID/resourceGroups/RE
141141

142142
**Example response**
143143

144-
If creation is successful, you'll see the following response.
144+
If creation is successful, you receive the following response.
145145

146146
```json
147147
{
@@ -177,7 +177,7 @@ If creation is successful, you'll see the following response.
177177

178178
# [Azure CLI](#tab/cli)
179179

180-
Create or update the retention policy by running the following:
180+
Create or update the retention policy by running the following command.
181181

182182
```azurecli
183183
az rest --method put --url "/subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP/providers/Microsoft.DurableTask/schedulers/SCHEDULER_NAME/retentionPolicies/default?api-version=2025-04-01-preview" --body '{
@@ -203,7 +203,7 @@ Create or update the retention policy by running the following:
203203

204204
**Example response**
205205

206-
If creation is successful, you'll see the following response.
206+
If creation is successful, you receive the following response.
207207

208208
```json
209209
{
@@ -240,23 +240,26 @@ If creation is successful, you'll see the following response.
240240

241241
# [Bicep](#tab/bicep)
242242

243-
Simply remove `retentionPolicies` from your Bicep
243+
Remove `retentionPolicies` from your Bicep file.
244244

245245
# [Azure Resource Manager](#tab/arm)
246246

247+
Delete the retention policy using an API call.
248+
249+
```HTTP
250+
DELETE https://management.azure.com/subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP/providers/Microsoft.DurableTask/schedulers/SCHEDULER_NAME/retentionPolicies/default?api-version=2025-04-01-preview
251+
```
247252

248253
# [Azure CLI](#tab/cli)
249-
To disable autopurge, simply delete the retention policies. The Durable Task Scheduler will stop cleaning orchestration data within 5 to 10 minutes.
250-
Need
254+
255+
Delete the retention policies using the following command. The Durable Task Scheduler stops cleaning orchestration data within 5 to 10 minutes.
251256

252257
```azurecli
253258
az rest --method delete --url "/subscriptions/SUBSCRIPTION_ID/resourceGroups/RESOURCE_GROUP_NAME/providers/Microsoft.DurableTask/schedulers/SCHEDULER_NAMER/retentionPolicies/default?api-version=2025-04-01-preview"
254259
```
255260

256261
---
257262

258-
259-
260263
## Next steps
261264

262265
Monitor and manage your orchestration status and history using [the Durable Task Scheduler dashboard](./durable-task-scheduler-dashboard.md).

0 commit comments

Comments
 (0)