fix: make zero-input workers durably restorable

This commit is contained in:
2026-09-17 21:36:17 +09:00
parent e722d21d98
commit 86b2a5fd81
3 changed files with 98 additions and 19 deletions
@@ -974,6 +974,10 @@ impl RuntimeWorkerFactory for ProfileRuntimeWorkerFactory {
}
}
worker
.materialize_durable_session_head()
.await
.map_err(|error| format!("materialize durable Worker session head: {error}"))?;
let workspace_client = worker.workspace_client_handle();
let started = prepared.start().await.map_err(|error| match error {
WorkerBootstrapError::Worker(source) => {