Add WorkflowRetryPolicy example project#1789
Merged
Conversation
…vities and child workflows Agent-Logs-Url: https://github.com/dapr/dotnet-sdk/sessions/f1ee135c-d9d3-425d-9df6-8afc544b2296 Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dapr/dotnet-sdk/sessions/f1ee135c-d9d3-425d-9df6-8afc544b2296 Co-authored-by: WhitWaldo <2238529+WhitWaldo@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
WhitWaldo
April 16, 2026 09:49
View session
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1789 +/- ##
=======================================
Coverage 62.37% 62.37%
=======================================
Files 285 285
Lines 8421 8421
Branches 980 980
=======================================
Hits 5253 5253
- Misses 2934 2935 +1
+ Partials 234 233 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
WhitWaldo
approved these changes
Apr 16, 2026
Contributor
WhitWaldo
left a comment
There was a problem hiding this comment.
Looks great - thank you!
3 tasks
This was referenced Apr 20, 2026
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.
Description
Adds
examples/Workflow/WorkflowRetryPolicy— a self-contained example demonstratingWorkflowRetryPolicyusage on activity and child workflow calls, as described in the Dapr workflow retry policies docs.Three retry scenarios are covered:
ChildWorkflowTaskOptionswith 1.5× backoffA
FlakyActivityandFlakyChildWorkflowsimulate transient failures by throwing for a configurable number of attempts before succeeding.Project added to
all.slnunder theexamples/Workflowsolution folder.Issue reference
This PR adds the example project requested in the linked issue. #1500
Checklist