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

Method sandbox_sync_guard

crates/openshell-server/src/compute/mod.rs:335–337  ·  view source on GitHub ↗

Serializes sandbox/provider-profile invariant checks and object writes within this gateway process. This is a temporary single-gateway guard for cross-object invariants. It is not HA-safe; replace it with DB-backed CAS/resource-version writes tracked by #1255 before enabling multiple gateway writers.

(&self)

Source from the content-addressed store, hash-verified

333 /// It is not HA-safe; replace it with DB-backed CAS/resource-version writes
334 /// tracked by #1255 before enabling multiple gateway writers.
335 pub(crate) async fn sandbox_sync_guard(&self) -> tokio::sync::OwnedMutexGuard<()> {
336 self.sync_lock.clone().lock_owned().await
337 }
338
339 pub async fn new_docker(
340 config: openshell_core::Config,

Calls

no outgoing calls

Tested by

no test coverage detected