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

Method is_connected

crates/openshell-server/src/supervisor_session.rs:142–144  ·  view source on GitHub ↗

Report whether a live supervisor session is registered for a sandbox. Used by compute drivers that need to surface "supervisor relay ready" through the Ready condition without polling the sandbox runtime.

(&self, sandbox_id: &str)

Source from the content-addressed store, hash-verified

140 /// Used by compute drivers that need to surface "supervisor relay ready"
141 /// through the Ready condition without polling the sandbox runtime.
142 pub fn is_connected(&self, sandbox_id: &str) -> bool {
143 self.sessions.lock().unwrap().contains_key(sandbox_id)
144 }
145
146 /// Remove the session for a sandbox.
147 fn remove(&self, sandbox_id: &str) {

Callers

nothing calls this directly

Calls 1

contains_keyMethod · 0.80

Tested by

no test coverage detected