Skip to content

Commit d150fab

Browse files
committed
Add a short sleep on every worker loop iteration
1 parent 917f036 commit d150fab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bolt-worker/bolt/worker/workers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ def run(self):
7373
future = self.executor.submit(process_job, job_uuid)
7474
future.add_done_callback(partial(future_finished_callback, job_uuid))
7575

76+
# Do a quick sleep regardless to see if it
77+
# gives processes a chance to start up
78+
time.sleep(0.1)
79+
7680
def shutdown(self):
7781
if self._is_shutting_down:
7882
# Already shutting down somewhere else

0 commit comments

Comments
 (0)