Skip to content

Commit b29f775

Browse files
committed
Improve wakeup handling
1 parent a075186 commit b29f775

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pulpcore/tasking/worker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ def handle_available_tasks(self):
484484
"""
485485
keep_looping = True
486486
while keep_looping and not self.shutdown_requested:
487+
# Clear pending wakeups. We are about to handle them anyway.
488+
self.wakeup = False
487489
try:
488490
with PGAdvisoryLock(TASK_UNBLOCKING_LOCK):
489491
keep_looping = self.unblock_tasks()

0 commit comments

Comments
 (0)