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

Method set_snapshot_condition

crates/openshell-driver-vm/src/driver.rs:2928–2938  ·  view source on GitHub ↗
(
        &self,
        sandbox_id: &str,
        condition: SandboxCondition,
        deleting: bool,
    )

Source from the content-addressed store, hash-verified

2926 }
2927
2928 async fn set_snapshot_condition(
2929 &self,
2930 sandbox_id: &str,
2931 condition: SandboxCondition,
2932 deleting: bool,
2933 ) -> Option<Sandbox> {
2934 let mut registry = self.registry.lock().await;
2935 let record = registry.get_mut(sandbox_id)?;
2936 record.snapshot.status = Some(status_with_condition(&record.snapshot, condition, deleting));
2937 Some(record.snapshot.clone())
2938 }
2939
2940 fn publish_snapshot(&self, sandbox: Sandbox) {
2941 let _ = self.events.send(WatchSandboxesEvent {

Callers 2

delete_sandboxMethod · 0.80
monitor_sandboxMethod · 0.80

Calls 1

status_with_conditionFunction · 0.85

Tested by

no test coverage detected