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

Method stop

supervisor/src/supervisor.rs:81–85  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

79 }
80
81 pub fn stop(&self, id: &str) -> Result<()> {
82 let process = self.processes.get(id).context("Process not found")?;
83 info!("Stopping process {id}");
84 process.stop()
85 }
86
87 pub fn remove(&self, id: &str) -> Result<()> {
88 let process = self.processes.get(id).context("Process not found")?;

Callers 1

shutdownMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected