-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition on worker stop/start (#255)
The worker ensures that `worker.start()` blocks until the worker is ready to execute a task and `worker.stop()` blocks until the worker is no longer able to execute a task. It does so using a group of `threading.Event`s. There were intermittent issues when events were not being cleaned up correctly, so when the worker was restarted it was not in the correct state. This PR fixes those and cleans up some of the thread control code.
- Loading branch information
1 parent
b78faf7
commit d0ffaaf
Showing
2 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters