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

Function remove

supervisor/src/web_api.rs:56–58  ·  view source on GitHub ↗
(supervisor: &State<Supervisor>, id: &str)

Source from the content-addressed store, hash-verified

54
55#[delete("/remove/<id>")]
56async fn remove(supervisor: &State<Supervisor>, id: &str) -> Json<Response<()>> {
57 to_json(supervisor.remove(id))
58}
59
60#[get("/list")]
61fn list(supervisor: &State<Supervisor>) -> Json<Response<Vec<ProcessInfo>>> {

Callers

nothing calls this directly

Calls 2

to_jsonFunction · 0.85
removeMethod · 0.45

Tested by

no test coverage detected