-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements for osqueryinstance's errgroup #2017
Conversation
RebeccaMahany
commented
Dec 30, 2024
•
edited
Loading
edited
- Moves errgroup to its own package for reusability
- Adds tests for errgroup
- Adds more and better logging so that we can track whether shutdown tasks are taking a long time
- Run repeated goroutine immediately after delay, rather than waiting for another interval
- Recover panicking goroutines
6356118
to
cd484d1
Compare
type LoggedErrgroup struct { | ||
errgroup *errgroup.Group | ||
cancel context.CancelFunc | ||
doneCtx context.Context // nolint:containedctx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same nolint exception we had previously, just moved from osqueryinstance to here. In the future I think we might be able to get rid of this entirely -- but the errgroup is very sensitive when it comes to updating anything that touches doneCtx
so I want to do it in a separate PR at a later time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 🔥 🔥
f665c36