Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to achieve exponential backoff retry policy #1248

Open
pgorczynski opened this issue Mar 19, 2024 · 1 comment
Open

How to achieve exponential backoff retry policy #1248

pgorczynski opened this issue Mar 19, 2024 · 1 comment

Comments

@pgorczynski
Copy link

Hi,

I would like to achieve such scenario, that when I have workflow step that failed during the execution, it will get retried with exponential backoff policy?

I would like to apply it for each step in each workflow that I have in my system.

I was thinking about using OnStepError event and changing the SleepUntil property on active ExecutionPointer based on the retries counter.

Is there a better way to achieve such scenario?

@prit3010
Copy link

One way you can do it would be through the StepMiddleware.

There is an example of the Retry Mechanism with Polly. You can use the Polly Wait and Retry Async for the exponential backoff policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants