Merge "Sleep between deferred requests on paused handler"

This commit is contained in:
Zuul 2023-08-16 13:36:12 +00:00 committed by Gerrit Code Review
commit 6d61644f07

View File

@ -238,6 +238,7 @@ class PoolWorker(threading.Thread, stats.StatsReporter):
if self.paused_handlers and not reasons_to_decline:
self.log.debug("Handler is paused, deferring request")
time.sleep(0.25)
continue
# At this point, we are either unpaused, or we know we