Skip to main content

should_obey_shutdown

Function should_obey_shutdown 

Source
pub fn should_obey_shutdown() -> bool
Expand description

Returns true when audit/test mode is active and long-running subcommands should ignore the cancellation token. The flag is honoured by the embedder loop in crate::embedder and by every call site that consults shutdown_requested. Production invocations always return true here.

The flag is read from the SQLITE_GRAPHRAG_IGNORE_SHUTDOWN environment variable. Accepted values: 1, true, yes, on (case-insensitive). Anything else (including unset) means obey the cancellation token.