Skip to main content

set_interrupt_context

Function set_interrupt_context 

Source
pub fn set_interrupt_context(context: InterruptContext)
Expand description

Set the global interrupt context.

This function should be called during pipeline initialization to provide the interrupt handler with the context needed to save a checkpoint when interrupted.

§Arguments

  • context - The interrupt context to store

§Note

This function is typically called at the start of run_pipeline() to ensure the interrupt handler has the most up-to-date context.