Advance workflow stages from the state-driven coordinator
This commit is contained in:
@@ -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) })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user