Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #291 from btovar/wq_deadlocks_2
Modified protocol for the transfer of task stdout from worker to prevent deadlock in the master-foreman interactions when both are streaming data: 1. Workers do not send results immediately, now they send a message "available_results". 2. When master sees "available_results", it pushes the worker into a list. 3. Eventually, the master goes through that list, sending "send_results n" to the respective workers, and waits for the workers (one by one) to respond. n is the maximum number of results to send. n == -1 means send all. 4. workers respond with at most n result messages, and a final "end" message.
- Loading branch information
Showing
2 changed files
with
183 additions
and
17 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
Oops, something went wrong.