From bb6558e7bf4a6c2fe7417d31f1a6933495479460 Mon Sep 17 00:00:00 2001 From: Hare Date: Fri, 4 Sep 2026 12:48:15 +0900 Subject: [PATCH] fix: log Worker execution restore failures --- crates/worker-runtime/src/runtime.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/worker-runtime/src/runtime.rs b/crates/worker-runtime/src/runtime.rs index 8997d86f..fd5a0b16 100644 --- a/crates/worker-runtime/src/runtime.rs +++ b/crates/worker-runtime/src/runtime.rs @@ -2733,6 +2733,18 @@ impl RuntimeState { .unwrap_or_else(|| "worker execution restore failed".to_string()); let diagnostic_id = self.next_diagnostic_id; self.next_diagnostic_id += 1; + let workspace_id = self + .workers + .get(&worker_ref.worker_id) + .and_then(|worker| worker.workspace_id.as_deref()) + .unwrap_or(""); + eprintln!( + "yoi-runtime: Worker execution restore failed: diagnostic_id={diagnostic_id} runtime_id={} workspace_id={workspace_id} worker_id={} operation={:?} outcome={:?}: {message}", + self.runtime_identity.as_deref().unwrap_or(""), + worker_ref.worker_id, + result.operation, + result.outcome, + ); self.diagnostics.push(RuntimeDiagnostic { id: diagnostic_id, severity: DiagnosticSeverity::Warning,