You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/durable/durable-task-scheduler/durable-task-scheduler-auto-purge.md
+78-69Lines changed: 78 additions & 69 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,17 @@ Autopurge operates asynchronously in the background, optimized to minimize syste
13
13
14
14
## How it works
15
15
16
-
Autopurge is an opt-in feature. Enable it by defining retention policies that control how long to keep the data of orchestrations in certain statuses. The autopurge feature purges data associated only with the following statuses:
16
+
Autopurge is an opt-in feature. Enable it by defining retention policies that control how long to keep the data of orchestrations in certain statuses. The autopurge feature purges orchestration data associated only with the following statuses:
17
17
-`Completed`
18
18
-`Failed`
19
19
-`Canceled`
20
20
-`Terminated`
21
21
22
-
Autopurge ignores data associated with the following statuses:
22
+
Autopurge ignores orchestration data associated with the following statuses:
23
23
-`Pending`
24
24
-`Running`
25
25
26
-
[Once enabled,](#enable-autopurge) autopurge periodically deletes orchestration instances older than the retention period you set.
26
+
[Once enabled,](#enable-autopurge) autopurge periodically deletes orchestration data older than the retention period you set.
27
27
28
28
> [!NOTE]
29
29
> Retention policies you define are applied to **all** task hubs in a scheduler.
@@ -55,11 +55,11 @@ When configuring an autopurge retention policy, you can set either a *specific*
55
55
}
56
56
```
57
57
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`).
59
-
- Data associated with completed orchestrations is deleted as soon as possible (approximately every 5 minutes).
60
-
- Data associated with failed orchestrations is purged after 60 days.
58
+
Add specific policies to override the default policy applied to orchestrations. In the following example, the second and third policies override the default policy (`"retentionPeriodInDays": 1`).
59
+
- Data associated with `completed` orchestrations is deleted as soon as possible (approximately every 5 minutes).
60
+
- Data associated with `failed` orchestrations is purged after 60 days.
61
61
62
-
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.
62
+
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.
63
63
64
64
```json
65
65
[
@@ -83,35 +83,64 @@ However, since no specific policy is set for canceled or terminated orchestratio
83
83
84
84
You can define retention policies using:
85
85
86
-
-Bicep
86
+
-Durable Task CLI
87
87
- Azure Resource Manager (ARM)
88
-
-Azure CLI
88
+
-Bicep
89
89
90
-
# [Bicep](#tab/bicep)
90
+
# [Durable Task CLI](#tab/cli)
91
91
92
-
You can create or update retention policies by adding the `retentionPolicies` configuration to your Bicep file. Make sure you're pulling from the latest preview version.
92
+
First, run `az extension update --name durabletask` to update the extension if you have it installed, or `az extension add --name durabletask` to install if you don't currently have the extension.
> Add `--help` to learn more about a Durable Task CLI command. For example, learn about the arguments and properties of the retention policy create command by running `az durabletask retention-policy create --help`
115
144
116
145
# [Azure Resource Manager](#tab/arm)
117
146
@@ -175,58 +204,42 @@ If creation is successful, you receive the following response.
175
204
}
176
205
```
177
206
178
-
# [Azure CLI](#tab/cli)
179
-
180
-
Create or update the retention policy by running the following command.
If creation is successful, you receive the following response.
209
+
You can create or update retention policies by adding the `retentionPolicies` configuration to your Bicep file. Make sure you're pulling from the latest preview version.
0 commit comments