Fix parallel step incorrectly being marked as errored w/fail fast
@@ -77,7 +77,10 @@ func (step InParallelStep) Run(ctx context.Context, state RunState) error {
var errorMessages []string
for err := range errs {
- if err != nil {
+ if err != nil && err != context.Canceled {
+ // The Run context being cancelled only means that one or more steps failed, not
+ // in_parallel itself. If we return context.Canceled error messages the step will
+ // be marked as errored instead of failed, and therefore they should be ignored.
errorMessages = append(errorMessages, err.Error())
}
}
