Skip to main content

setup_interrupt_handler

Function setup_interrupt_handler 

Source
pub fn setup_interrupt_handler()
Expand description

Set up the interrupt handler for graceful shutdown with checkpoint saving.

This function registers a SIGINT handler that will:

  1. Save a checkpoint with the current pipeline state
  2. Clean up generated files
  3. Exit gracefully

Call this early in main() after initializing the pipeline context.