Skip to content

Commit 7b1f971

Browse files
authored
Merge pull request #5074 from JoshVanL/workflow-retention-policy-notes
workflow: retention policy is not retroactive
2 parents a99633a + dce7176 commit 7b1f971

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

daprdocs/content/en/developing-applications/building-blocks/workflow/workflow-history-retention-policy.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ dapr workflow purge --app-id <app-id> --all-older-than <duration> --all-filter-s
3636
dapr workflow purge --app-id <app-id> --all-older-than <duration> --all-filter-status TERMINATED
3737
```
3838

39-
Note: Purge operations require a running workflow client in your application. See [How to: Manage workflows]({{% ref howto-manage-workflow.md %}}) for more details on the purge command and its requirements, including usage of the `--force` flag.
39+
When purging workflows, ensure that a workflow client is running for the same `app-id` so the workflow state machine can advance correctly. Avoid using the `--force` option while workflow instances may still be active, as this can corrupt the workflow state machine.
40+
41+
See [How to: Manage workflows]({{% ref howto-manage-workflow.md %}}) for more details on the purge command and additional cautions.
4042
{{% /alert %}}
4143

4244
The following example configuration sets each of the terminal states.

0 commit comments

Comments
 (0)