MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / shutdown

Function shutdown

supervisor/src/web_api.rs:84–86  ·  view source on GitHub ↗
(supervisor: &State<Supervisor>)

Source from the content-addressed store, hash-verified

82
83#[post("/shutdown")]
84async fn shutdown(supervisor: &State<Supervisor>) -> Json<Response<()>> {
85 to_json(perform_shutdown(supervisor, false).await)
86}
87
88async fn perform_shutdown(supervisor: &Supervisor, force: bool) -> Result<()> {
89 info!("Shutting down supervisor");

Callers

nothing calls this directly

Calls 2

to_jsonFunction · 0.85
perform_shutdownFunction · 0.85

Tested by

no test coverage detected