Skip to main content

SHUTDOWN_REQUESTED

Static SHUTDOWN_REQUESTED 

Source
pub static SHUTDOWN_REQUESTED: AtomicBool
Expand description

Global shutdown flag, set by the CTRL-C handler.

This uses a raw AtomicBool instead of relying solely on CancellationToken because the indexing pipeline is largely synchronous (ONNX inference, file I/O) and the flag must be visible from any thread without async polling.

Checked between files and between embedding mini-batches so that CTRL-C is honoured within a few seconds even during heavy CPU work.