Skip to content

Commit

Permalink
fix: overall status judgement when multiple stage errors (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
cd1989 authored and caicloud-bot committed Sep 11, 2019
1 parent 9769fe4 commit cb65dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/workflow/workflowrun/operator.go
Expand Up @@ -279,12 +279,12 @@ func (o *operator) OverallStatus() (*v1alpha1.Status, error) {
case v1alpha1.StatusWaiting:
waiting = true
case v1alpha1.StatusFailed:
err = !IsTrivial(o.wf, stage)
err = err || !IsTrivial(o.wf, stage)
case v1alpha1.StatusPending:
pending = true
case v1alpha1.StatusSucceeded:
case v1alpha1.StatusCancelled:
err = !IsTrivial(o.wf, stage)
err = err || !IsTrivial(o.wf, stage)
default:
log.WithField("stg", stage).
WithField("status", status.Status.Phase).
Expand Down

0 comments on commit cb65dec

Please sign in to comment.