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

Function clear

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

Source from the content-addressed store, hash-verified

74
75#[post("/clear")]
76fn clear(supervisor: &State<Supervisor>) -> Json<Response<()>> {
77 to_json({
78 supervisor.clear();
79 Ok(())
80 })
81}
82
83#[post("/shutdown")]
84async fn shutdown(supervisor: &State<Supervisor>) -> Json<Response<()>> {

Callers

nothing calls this directly

Calls 2

to_jsonFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected