Skip to content

Handle interrupt on shutdown in Monitor

Jonas Larsen requested to merge j_lar/make_monitor_shutdown_cleanly into master

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

  1. Check out the master branch
  2. Start the monitor: rails runner scripts/internal_events/monitor.rb i_code_review_user_create_mr
  3. Exit the monitor using ctrl+c
  4. Notice the stack trace

Validate the fix

  1. Check out the new branch
  2. Start the monitor: rails runner scripts/internal_events/monitor.rb i_code_review_user_create_mr
  3. Exit the monitor using ctrl+c
  4. 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.

Merge request reports