Skip to main content

graceful_shutdown

Function graceful_shutdown 

Source
pub async fn graceful_shutdown(state: &Arc<ServerState>)
Expand description

Best-effort orderly worker release: a short shutdown RPC, WAIT bounded for exit, then drop (JobObject kills the tree). WorkerProcess.child is a std::process::Child (blocking wait) so this uses a bounded try_wait poll (R6 seat-Q) — a one-shot at exit, not a hot loop.