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

Method set_started

vmm/src/app.rs:277–282  ·  view source on GitHub ↗
(&self, id: &str, started: bool)

Source from the content-addressed store, hash-verified

275 }
276
277 fn set_started(&self, id: &str, started: bool) -> Result<()> {
278 let work_dir = self.work_dir(id);
279 work_dir
280 .set_started(started)
281 .context("Failed to set started")
282 }
283
284 pub async fn stop_vm(&self, id: &str) -> Result<()> {
285 self.set_started(id, false)?;

Callers 3

start_vmMethod · 0.45
stop_vmMethod · 0.45
vm_event_reportMethod · 0.45

Calls 1

work_dirMethod · 0.80

Tested by

no test coverage detected