fix(orchestration): fence live worker lifecycle transitions

This commit is contained in:
Jinwoo-H
2026-08-16 22:36:08 -04:00
parent e0ce818ca9
commit 2ff3d4dd6d
7 changed files with 461 additions and 39 deletions
+1 -1
View File
@@ -16482,7 +16482,7 @@ export class OrcaRuntimeService {
}
const errorContext = `Agent exited with code ${exitCode}`
this._orchestrationDb.failDispatch(dispatch.id, errorContext)
this._orchestrationDb.failDispatch(dispatch.id, errorContext, { workerProcessExited: true })
// Why: create an escalation message so the coordinator is notified about
// the unexpected exit on its next check cycle, even if the circuit breaker