MCPcopy Create free account
hub / github.com/AI45Lab/Code / mark_cancelled

Method mark_cancelled

core/src/run.rs:194–200  ·  view source on GitHub ↗
(&self, run_id: &str)

Source from the content-addressed store, hash-verified

192 }
193
194 pub async fn mark_cancelled(&self, run_id: &str) -> Option<RunSnapshot> {
195 let mut runs = self.runs.write().await;
196 let run = runs.get_mut(run_id)?;
197 run.status = RunStatus::Cancelled;
198 run.updated_at_ms = now_ms();
199 Some(run.clone())
200 }
201
202 pub async fn snapshot(&self, run_id: &str) -> Option<RunSnapshot> {
203 self.runs.read().await.get(run_id).cloned()

Callers 4

cancelMethod · 0.80
closeMethod · 0.80
completeMethod · 0.80
cancelMethod · 0.80

Calls 3

writeMethod · 0.80
now_msFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected