pub struct SupervisorHandle { /* private fields */ }Expand description
Running sidecar supervisor.
SupervisorHandle::shutdown is the clean path (sidecar SIGTERM →
kernel cleanup → group SIGKILL). Dropping the handle is the hard path
mirroring waratah_bin::SpawnedCluster’s kill-on-drop: group SIGKILL
for the sidecar, then the [kill_orphaned_kernels] sweep for its
session-detached kernels.
Implementations§
Source§impl SupervisorHandle
impl SupervisorHandle
Sourcepub fn spawn(
options: NotebookOptions,
state: Arc<NotebookState>,
) -> Result<Self, NotebookError>
pub fn spawn( options: NotebookOptions, state: Arc<NotebookState>, ) -> Result<Self, NotebookError>
Fast-fail validation, then start the supervision task.
Only cheap checks run inline (interpreter exists and is 3.11+); venv
provisioning and the first spawn happen in the background so engine
startup is not gated on slow Python work. Readiness is observable
through state (GET /waratah/notebooks, the cluster block, and
the proxy’s 503s until then).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SupervisorHandle
impl RefUnwindSafe for SupervisorHandle
impl Send for SupervisorHandle
impl Sync for SupervisorHandle
impl Unpin for SupervisorHandle
impl UnsafeUnpin for SupervisorHandle
impl UnwindSafe for SupervisorHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more