fix: detach stopped worker execution handles

This commit is contained in:
2026-09-03 13:50:25 +09:00
parent 85e1ea320a
commit 74bfbe941e
2 changed files with 54 additions and 10 deletions
-10
View File
@@ -1800,16 +1800,6 @@ impl Runtime {
state.ensure_running()?;
state.ensure_worker_ref(worker_ref)?;
{
let worker = state.worker(worker_ref)?;
if !worker.status.is_active() {
return Ok(WorkerLifecycleAck {
worker_ref: worker_ref.clone(),
status: worker.status,
});
}
}
let worker = state.worker_mut(worker_ref)?;
worker.status = status;
worker.restore_intent = restore_intent_for_status(status);