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

Method after_delete

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

Source from the content-addressed store, hash-verified

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() {
626 if let Err(err) = ext.after_delete(sandbox, state_dir).await {
627 tracing::warn!(
628 extension = ext.name(),
629 sandbox_id = %sandbox.id,
630 error = %err,
631 "vm driver: lifecycle extension after_delete hook failed"
632 );
633 }
634 }
635 }
636
637 pub async fn before_restore(&self, sandbox: &RestoreContext) -> LifecycleResult<()> {
638 for ext in self.active_for(&sandbox.sandbox) {

Callers 2

delete_sandboxMethod · 0.45

Calls 2

active_forMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected