Handle interrupt on shutdown in Monitor
What does this MR do and why?
Currently the Internal Events Tracking Monitor prints a stack trace when you exit it.
This MR fixes that.
How to set up and validate locally
To reproduce the bug
- Check out the
master
branch - Start the monitor:
rails runner scripts/internal_events/monitor.rb i_code_review_user_create_mr
- Exit the monitor using
ctrl+c
- Notice the stack trace
Validate the fix
- Check out the new branch
- Start the monitor:
rails runner scripts/internal_events/monitor.rb i_code_review_user_create_mr
- Exit the monitor using
ctrl+c
- Notice the the clean exit
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.