Skip to content

Commit 6f4d13e

Browse files
committed
updates from bernd and bill
Signed-off-by: Hannah Hunter <[email protected]>
1 parent 7cbf749 commit 6f4d13e

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

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

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ When configuring an autopurge retention policy, you can set either a *specific*
5656
```
5757

5858
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`).
59-
- Data associated with completed orchestrations is deleted immediately.
59+
- Data associated with completed orchestrations is deleted as soon as possible (approximately every 5 minutes).
6060
- Data associated with failed orchestrations is purged after 60 days.
6161

6262
However, since no specific policy is set for canceled or terminated orchestrations, the default policy still applies to them, purging their data after 1 day.
@@ -180,25 +180,7 @@ If creation is successful, you receive the following response.
180180
Create or update the retention policy by running the following command.
181181

182182
```azurecli
183-
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 '{
184-
"name": "default",
185-
"type": "private.durabletask/schedulers/retentionPolicies",
186-
"properties": {
187-
"retentionPolicies": [
188-
{
189-
"retentionPeriodInDays": 1
190-
},
191-
{
192-
"retentionPeriodInDays": 0,
193-
"orchestrationState": "Completed"
194-
},
195-
{
196-
"retentionPeriodInDays": 60,
197-
"orchestrationState": "Failed"
198-
},
199-
]
200-
}
201-
}'
183+
az durabletask retention-policy create --scheduler-name SCHEDULER_NAME --resource-group RESOURCE_GROUP --default-days 1 --completed-days 0 --failed-days 60
202184
```
203185

204186
**Example response**
@@ -255,7 +237,7 @@ DELETE https://management.azure.com/subscriptions/SUBSCRIPTION_ID/resourceGroups
255237
Delete the retention policies using the following command. The Durable Task Scheduler stops cleaning orchestration data within 5 to 10 minutes.
256238

257239
```azurecli
258-
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"
240+
az durabletask retention-poliby delete --scheduler-name SCHEDULER_NAME --resource-group RESOURCE_GROUP
259241
```
260242

261243
---

0 commit comments

Comments
 (0)