mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-19 16:03:00 +00:00
Update jupyterhub/utils.py
Co-authored-by: Erik Sundell <erik.i.sundell@gmail.com>
This commit is contained in:
@@ -174,7 +174,7 @@ async def exponential_backoff(
|
||||
# Except Overflow Error. Otherwise start_wait * scale will be too big at some point.
|
||||
try:
|
||||
if scale == 0:
|
||||
dt = min(max_wait, remaining))
|
||||
dt = min(max_wait, remaining)
|
||||
else:
|
||||
dt = min(max_wait, remaining, random.uniform(0, start_wait * scale))
|
||||
except OverflowError:
|
||||
|
Reference in New Issue
Block a user