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

Interface SupervisorReadiness

crates/openshell-driver-docker/src/lib.rs:137–139  ·  view source on GitHub ↗

Queried by the Docker driver to decide when a sandbox's supervisor relay is live. Implementations return `true` once a sandbox has an active `ConnectSupervisor` session registered. The driver cannot observe the supervisor's SSH socket directly (it lives inside the container), so it leans on this signal to flip the Ready condition from `DependenciesNotReady` to `True`.

Source from the content-addressed store, hash-verified

135/// lives inside the container), so it leans on this signal to flip the
136/// Ready condition from `DependenciesNotReady` to `True`.
137pub trait SupervisorReadiness: Send + Sync + 'static {
138 fn is_supervisor_connected(&self, sandbox_id: &str) -> bool;
139}
140
141/// Gateway-local configuration for the Docker compute driver.
142#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]

Callers

nothing calls this directly

Implementers 2

supervisor_session.rscrates/openshell-server/src/supervisor
tests.rscrates/openshell-driver-docker/src/tes

Calls

no outgoing calls

Tested by

no test coverage detected