Advance workflow stages from the state-driven coordinator
This commit is contained in:
@@ -16,6 +16,7 @@ type Work struct {
|
||||
StartStages []StageStart
|
||||
SettleReviews []SnapshotRef
|
||||
ReadyPrompts []ReadyPrompt
|
||||
AdvanceStages []string
|
||||
}
|
||||
|
||||
func (s *Store) Coordinate(ctx context.Context) (Work, error) {
|
||||
@@ -69,6 +70,10 @@ func (s *Store) Coordinate(ctx context.Context) (Work, error) {
|
||||
return err
|
||||
}
|
||||
work.ReadyPrompts, err = readyPrompts(ctx, tx, emit)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
work.AdvanceStages, err = finishedStages(ctx, tx)
|
||||
return err
|
||||
})
|
||||
return work, err
|
||||
|
||||
Reference in New Issue
Block a user