HangfireIO / Hangfire

An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
https://www.hangfire.io
Other
9.44k stars 1.71k forks source link

Backoff, Jitter and retries #2365

Open qkarpowi opened 9 months ago

qkarpowi commented 9 months ago

When using hangfire to fire api calls in the background it would be beneficial to configure the request to not retry 10 times in a row one after the other but introduce some kind of delay or jitter. Is it possible to introduce jitter or delay to the retries currently? Is it possible to this feature request to a backlog?

For me some kind of exponential retries would be super helpful, where it would retry in 2 min then 4 min then 8 min then 16 min then 32 min.