Advance workflow stages from the state-driven coordinator

This commit is contained in:
Ian Gulliver
2026-10-21 13:11:03 -07:00
parent c77a5ba02b
commit be777e469c
6 changed files with 49 additions and 40 deletions
+3
View File
@@ -72,6 +72,9 @@ func (m *Manager) coordinatePass(ctx context.Context, started map[string]bool) {
for _, r := range work.SettleReviews {
once(fmt.Sprintf("settle:%s:%d", r.TaskID, r.N), func() { m.settleReviews(r) })
}
for _, id := range work.AdvanceStages {
once("advance:"+id, func() { m.advanceStage(id) })
}
for _, p := range work.ReadyPrompts {
once("ready:"+p.TaskID, func() { m.promptReady(p) })
}