Let workflows merge or discard their own tasks

This commit is contained in:
Ian Gulliver
2026-10-22 16:46:57 -07:00
parent b2cb15dd2a
commit efa1513568
13 changed files with 489 additions and 398 deletions
+3
View File
@@ -93,6 +93,9 @@ func (m *Manager) coordinatePass(ctx context.Context, started map[string]bool) *
for _, p := range work.ReadyPrompts {
once("ready:"+p.TaskID, func() { m.promptReady(p) })
}
for _, c := range work.SelfCloses {
once(fmt.Sprintf("selfclose:%s:%s", c.TaskID, c.Ready), func() { m.selfClose(c) })
}
for _, sc := range work.DueSchedules {
once(fmt.Sprintf("schedule:%s:%d", sc.Id, sc.NextRun.UnixNano()), func() { m.runSchedule(sc) })
}