Skip to main content

handle_shutdown

Function handle_shutdown 

Source
pub(crate) async fn handle_shutdown(
    __arg0: State<AppState>,
    __arg1: Json<ShutdownRequest>,
) -> Response
Expand description

POST /api/v1/host/shutdown: srv’s graceful teardown, and the answer once it is done (done: false when the deadline came first, with the teardown still running). Calling it again is harmless: what is closed is gone.