Skip to content

Commit

Permalink
Explicitly join() the scheduler.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Oct 8, 2021
1 parent b04bcb0 commit 279ca4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions huey/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ def stop(self, graceful=False):
try:
for _, worker_process in self.worker_threads:
worker_process.join()
self.scheduler.join()
except KeyboardInterrupt:
self._logger.info('Received request to shut down now.')
else:
Expand Down

0 comments on commit 279ca4a

Please sign in to comment.