P5: a head pipeline that waits is not joined by start nor carried to (the carry joins only a running one, as before)
Builds: design 47 H2 H-A-607 (2), H-A-643
This commit is contained in:
@@ -23,7 +23,7 @@ type AddedFrom struct {
|
||||
|
||||
// openPipeline says whether p waits or runs: a delivering pipeline that has not ended.
|
||||
func openPipeline(p seat.Pipeline) bool {
|
||||
return p.Run == "" && (p.Outcome == seat.PipelineOutcomeRunning || p.Outcome == seat.PipelineOutcomeWaiting) && p.Ended == nil
|
||||
return p.Run == "" && p.Outcome == seat.PipelineOutcomeRunning && p.Ended == nil
|
||||
}
|
||||
|
||||
// AddMovers adds to the pipeline key, which waits or runs, each of movers it does not move yet, tiers them with the rest from
|
||||
|
||||
@@ -94,6 +94,9 @@ func (v Verbs) Start(caller string, in seat.StartInput) (seat.StartAnswer, error
|
||||
}
|
||||
return seat.StartAnswer{Pipeline: key}, nil
|
||||
}
|
||||
if head.Ended == nil {
|
||||
return seat.StartAnswer{}, fmt.Errorf("the pipeline %s is %s, not running: nothing was started", key, head.Outcome)
|
||||
}
|
||||
// The head's pipeline has ended: a module whose own step failed reopens it with its closed group, as a rerun does.
|
||||
for _, m := range movers {
|
||||
if !Moves(head, m.Module) || len(failedSteps(head, m.Module)) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user