-
Notifications
You must be signed in to change notification settings - Fork 108
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
feat: clear intervals on shutdown #378
Conversation
Co-Authored-By: Tom Jenkinson <[email protected]>
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.
Looks good to me!
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.
In general this looks good to me. Thanks for the contribution. I'm trying to think of a good way to add a test for this, but it's not really obvious without introducing mocks into the tests. 🤔
Please change EMIT_INTERVAL
to SNAPSHOT_INTERVAL
.
@scttcper thanks for the contrib! |
after shutting down a circuit breaker, these status intervals are persisted and continue to run. This keeps track of each interval and shuts them down.
Edit: attempting to fix the following warning from jest when using
jest --detectOpenHandles