-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a current_tasks argument for retransmission in get_work
Sometimes a worker will not receive the result of a get_work call from the scheduler. This leaves the scheduler thinking that the worker is running tasks that the worker is not running. In order to safely clear up the misunderstanding we let the scheduler know which tasks the worker is running with each get_work call. If the scheduler finds that the worker isn't aware of a task that it should be running, the scheduler will send it to the worker. In order to maintain backward compatibility and not have to rewrite every unit test, leaving out current_tasks from the get_work call will be treated as equivalent to sending every currently running task. Note that this does not check that every task sent in the currently running list is actually running.
- Loading branch information
1 parent
6aae26f
commit f2e6fff
Showing
4 changed files
with
55 additions
and
2 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
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