(
&self,
sandbox: &Sandbox,
state_dir: &Path,
reason: LaunchAbortReason,
)
| 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() { |
no test coverage detected