Let workflows merge or discard their own tasks
This commit is contained in:
@@ -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) })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user