diff --git a/lib/utils.py b/lib/utils.py
index 1abec0ef29a290f09b32bb29eb74b227f5d1b372..50ad64fcfa8afc81b6ff0b19fa1a407ba6d4d8bc 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -2107,7 +2107,7 @@ class _RetryDelayCalculator(object):
 
     # Update for next run
     if self._limit is None or self._next < self._limit:
-      self._next = max(self._limit, self._next * self._factor)
+      self._next = min(self._limit, self._next * self._factor)
 
     return current