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)
| 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) { |
nothing calls this directly
no test coverage detected