-
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: graceful closing of other plugins on initialization failure
Now that we parse all default expressions from plugins, we discovered that the `activity` plugin had a malformed expression, and when the parsing failed and `hc` exited, other plugin processes were left orphaned. This commit makes sure we use up the JoinSet that performs plugin initialization, thus trying to initialize all plugins instead of stopping as soon as the first error occurs. By doing so, we prevent orphaned processes and report all errors which makes for a better user experience. Signed-off-by: jlanson <[email protected]>
- Loading branch information
1 parent
455ad62
commit f2284f6
Showing
3 changed files
with
38 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
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