Skip to content

A dead worker redeploys once, then waits for Restart (CL-9913) - #1106

Merged
TheGreatAxios merged 4 commits into
mainfrom
cl-9913-dead-worker-status
Oct 5, 2026
Merged

TheGreatAxios merged 4 commits into
mainfrom
cl-9913-dead-worker-status

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Problem: the deployments projection never consults run status, so a worker or routine whose run errored or stopped still read as deployed/working and the workers list offered no Restart.

Fix: one helper, deploymentLiveness(deploymentStatus, runStatus), combines the projection with the run's own status. listChatAgents (chat header, workers list) and listScheduledWorkflows (routines) use it, so a dead run has no live address and the workers list shows Stopped with Restart.

Repro: new unit test failed on origin/main (helper absent) and covers real projection/run status pairs.

Gates: typecheck, lint, fmt:check, test (web 129 pass; other packages with no test files fail as on main; e2e skipped, no DATABASE_URL).

@linear-code

linear-code Bot commented Oct 4, 2026

Copy link
Copy Markdown

CL-9913

@TheGreatAxios
TheGreatAxios force-pushed the cl-9913-dead-worker-status branch from cc221ec to fab30c8 Compare October 5, 2026 00:36
@TheGreatAxios
TheGreatAxios force-pushed the cl-9913-dead-worker-status branch from 28872d7 to 2357eb6 Compare October 5, 2026 01:24
@TheGreatAxios TheGreatAxios changed the title web: a dead run reads as stopped and offers Restart (CL-9913) A dead worker redeploys once, then waits for Restart (CL-9913) Oct 5, 2026
@TheGreatAxios
TheGreatAxios merged commit 4e7cbe8 into main Oct 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant