diff --git a/src/ConductorSharp.Engine/Polling/InverseExponentialBackoff.cs b/src/ConductorSharp.Engine/Polling/InverseExponentialBackoff.cs index 43ebab2b..ccd02ea1 100644 --- a/src/ConductorSharp.Engine/Polling/InverseExponentialBackoff.cs +++ b/src/ConductorSharp.Engine/Polling/InverseExponentialBackoff.cs @@ -20,6 +20,9 @@ public int CalculateDelay( int currentSleepInterval ) { + if (baseSleepInterval < _recoveryValue) + throw new ArgumentException($"Sleep interval must be greater than or equal than {_recoveryValue}ms"); + if (taskToWorkerList.Count > 0) { currentSleepInterval /= _backoffRatio;