-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stream: handle application termination in producer daemon;
Upon termination of the application, we start shutting down the producer daemon and cancel all contexts. However, we have to delay cancling the context used to write the message to the output (by one second by default) to allow the message to still be written. Should we fail to write the message in that timeframe, we handle the resulting cancel error by logging a warning.
- Loading branch information
Showing
2 changed files
with
110 additions
and
26 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