We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 664e51d commit 9ccab61Copy full SHA for 9ccab61
src/ServiceControl.Infrastructure/AsyncTimer.cs
@@ -51,7 +51,7 @@ public TimerJob(Func<CancellationToken, Task<TimerJobExecutionResult>> callback,
51
catch (Exception ex)
52
{
53
consecutiveFailures++;
54
- var exponentialBackoffDelay = TimeSpan.FromSeconds(int.Max(60, consecutiveFailures * consecutiveFailures));
+ var exponentialBackoffDelay = TimeSpan.FromSeconds(int.Min(60, consecutiveFailures * consecutiveFailures));
55
56
await Task.Delay(exponentialBackoffDelay, token).ConfigureAwait(false);
57
0 commit comments