Repository navigation
Conversation
Dapr can now set retention durations per workflow name under spec.workflow.stateRetentionPolicy.workflows. Add a per-workflow section to the history retention policy page with an example, the precedence order, how names are matched (exact, versions, child and multi-app workflows, ContinueAsNew, instance ID reuse) and the validation rules. List stateRetentionPolicy in the configuration overview workflow table. Signed-off-by: joshvanl <me@joshvanl.dev>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues require changes to the per-workflow state retention documentation.
No open issues 🎉
What changed in this PR
Documents per-workflow state retention in Dapr, explaining how workflow-specific durations interact with app-wide defaults.
Changes:
- Adds a YAML example and precedence flowchart for per-workflow retention.
- Explains name matching, workflow lifecycle cases, and configuration validation.
- Lists
stateRetentionPolicyin the configuration overview with a link to the detailed guide.
| File | Description |
|---|---|
| daprdocs/content/en/operations/configuration/configuration-overview.md | Adds the retention policy to the workflow configuration table. |
| daprdocs/content/en/developing-applications/building-blocks/workflow/workflow-history-retention-policy.md | Documents per-workflow retention, precedence, matching, and validation. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dapr can now set retention durations per workflow name under spec.workflow.stateRetentionPolicy.workflows.
Add a per-workflow section to the history retention policy page with an example, the precedence order, how names are matched (exact, versions, child and multi-app workflows, ContinueAsNew, instance ID reuse) and the validation rules. List stateRetentionPolicy in the configuration overview workflow table.