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

Function start

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

Source from the content-addressed store, hash-verified

44
45#[post("/start/<id>")]
46async fn start(supervisor: &State<Supervisor>, id: &str) -> Json<Response<()>> {
47 to_json(supervisor.start(id))
48}
49
50#[post("/stop/<id>")]
51async fn stop(supervisor: &State<Supervisor>, id: &str) -> Json<Response<()>> {

Callers

nothing calls this directly

Calls 2

to_jsonFunction · 0.85
startMethod · 0.45

Tested by

no test coverage detected