Merge "Python 3.12: cast random delays as int"

This commit is contained in:
Zuul 2024-03-20 09:29:16 +00:00 committed by Gerrit Code Review
commit 4446f9ced8
1 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,8 @@ class LegacyScheduler(sched_base.Scheduler):
eventlet.sleep(
self._fixed_delay +
random.Random().randint(0, self._random_delay * 1000) * 0.001
random.Random().randint(0,
int(self._random_delay * 1000)) * 0.001
)
def _process_delayed_calls(self, ctx=None):