Merge pull request #2901 from deckarep/consul-ensure-exit-non-zero-on-timeout
Ensure to exit with a non-zero status code when a timeout and all jobs are not completed.
This commit is contained in:
commit
759e93122f
|
@ -312,6 +312,9 @@ OUTER:
|
|||
c.UI.Info(fmt.Sprintf("Completed in %0.2f seconds",
|
||||
float64(time.Now().Sub(start))/float64(time.Second)))
|
||||
}
|
||||
if exitCount < ackCount {
|
||||
badExit++
|
||||
}
|
||||
break OUTER
|
||||
|
||||
case <-errCh:
|
||||
|
|
Loading…
Reference in a new issue