-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use the WaitGroup to count workers instead of pending log uploads, averting any potential races on the WaitGroup - Signal to workers that work is complete by closing the channel, instead of sending nil several times - Handle context cancellation in worker with a select - Add context arg to Process, and a select to handle it there, too - Track whether the streamer has been stopped, and use that to return an error from Process. - Reinstate error handling inside streamJobLogsAfterProcessStart - Neaten up core of Process loop - Doc comments
- Loading branch information
1 parent
50b07ee
commit 56b1472
Showing
2 changed files
with
80 additions
and
52 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