Saga Activity Exception Handler and Set Retry Policy #5194
Replies: 3 comments 3 replies
-
.Retry(r => r.Intervals(10, 10, 10), x => x
.Then(context =>
{
context.Saga.AttemptCount++;
throw new IntentionalTestException("Time to crash");
})), |
Beta Was this translation helpful? Give feedback.
-
Hi Chris, i tried like below but it does not repect even interval count
|
Beta Was this translation helpful? Give feedback.
-
I tried it this way too, but on the first error, it is caught directly by the catch block without retrying, and its status is changed.
My activity for test like below public class OrderCreateRequestActivity(
} |
Beta Was this translation helpful? Give feedback.
-
Hello,
The code below successfully catches errors during the activity execution by blocking the publish and preventing the transition to the "OrderCreateRequested" state. It then updates the status to "OrderCreateRequestFailed" successfully. However, it does not retry. I want it to fall into the Catch block after retrying 3 times. How can I do this?
Beta Was this translation helpful? Give feedback.
All reactions