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

Function spawn

crates/openshell-supervisor-process/src/supervisor_session.rs:233–245  ·  view source on GitHub ↗

Spawn the supervisor session task. The task runs for the lifetime of the sandbox process, reconnecting with exponential backoff on failures.

(
    endpoint: String,
    sandbox_id: String,
    ssh_socket_path: std::path::PathBuf,
    netns_fd: Option<i32>,
)

Source from the content-addressed store, hash-verified

231/// The task runs for the lifetime of the sandbox process, reconnecting with
232/// exponential backoff on failures.
233pub fn spawn(
234 endpoint: String,
235 sandbox_id: String,
236 ssh_socket_path: std::path::PathBuf,
237 netns_fd: Option<i32>,
238) -> tokio::task::JoinHandle<()> {
239 tokio::spawn(run_session_loop(
240 endpoint,
241 sandbox_id,
242 ssh_socket_path,
243 netns_fd,
244 ))
245}
246
247async fn run_session_loop(
248 endpoint: String,

Callers 15

spawn_log_push_taskFunction · 0.70
run_push_loopFunction · 0.70
handle_gateway_messageFunction · 0.70
handle_relay_openFunction · 0.70
connect_tcp_targetFunction · 0.70
run_ssh_serverFunction · 0.70
connect_in_netnsFunction · 0.70
spawn_pty_shellFunction · 0.70
spawn_pipe_execFunction · 0.70

Calls 1

run_session_loopFunction · 0.70