MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / remove_pending_sandbox

Method remove_pending_sandbox

crates/openshell-driver-docker/src/lib.rs:1100–1110  ·  view source on GitHub ↗
(
        &self,
        sandbox_id: &str,
        sandbox_name: &str,
    )

Source from the content-addressed store, hash-verified

1098 }
1099
1100 async fn remove_pending_sandbox(
1101 &self,
1102 sandbox_id: &str,
1103 sandbox_name: &str,
1104 ) -> Option<PendingSandboxRecord> {
1105 let mut pending = self.pending.lock().await;
1106 let id = pending.iter().find_map(|(id, record)| {
1107 pending_sandbox_matches(&record.sandbox, sandbox_id, sandbox_name).then(|| id.clone())
1108 })?;
1109 pending.remove(&id)
1110 }
1111
1112 async fn fail_pending_sandbox(
1113 &self,

Callers 2

delete_sandbox_innerMethod · 0.80
stop_sandbox_innerMethod · 0.80

Calls 2

pending_sandbox_matchesFunction · 0.85
removeMethod · 0.45

Tested by

no test coverage detected