We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 056963b commit 8fc5b77Copy full SHA for 8fc5b77
zulip/zulip/__init__.py
@@ -95,7 +95,7 @@ def fail(self):
95
# Exponential growth with ratio sqrt(2); compute random delay
96
# between x and 2x where x is growing exponentially
97
delay_scale = int(2 ** (self.number_of_retries / 2.0 - 1)) + 1
98
- delay = min(delay_scale + random.randint(1, delay_scale), delay_cap)
+ delay = min(delay_scale + random.randint(1, delay_scale), self.delay_cap)
99
message = "Sleeping for %ss [max %s] before retrying." % (delay, delay_scale * 2)
100
try:
101
logger.warning(message)
0 commit comments