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

Method after_launch_failed

crates/openshell-driver-vm/src/lifecycle.rs:603–622  ·  view source on GitHub ↗
(
        &self,
        sandbox: &Sandbox,
        state_dir: &Path,
        reason: LaunchAbortReason,
    )

Source from the content-addressed store, hash-verified

601 }
602
603 pub async fn after_launch_failed(
604 &self,
605 sandbox: &Sandbox,
606 state_dir: &Path,
607 reason: LaunchAbortReason,
608 ) {
609 for ext in self.active_for(sandbox).into_iter().rev() {
610 if let Err(err) = ext
611 .after_launch_failed(sandbox, state_dir, reason.clone())
612 .await
613 {
614 tracing::warn!(
615 extension = ext.name(),
616 sandbox_id = %sandbox.id,
617 error = %err,
618 "vm driver: lifecycle extension after_launch_failed hook failed"
619 );
620 }
621 }
622 }
623
624 pub async fn after_delete(&self, sandbox: &Sandbox, state_dir: &Path) {
625 for ext in self.active_for(sandbox).into_iter().rev() {

Calls 2

active_forMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected