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:
James Phillips 2017-05-18 10:25:50 -04:00 committed by GitHub
commit 759e93122f

View file

@ -312,6 +312,9 @@ OUTER:
c.UI.Info(fmt.Sprintf("Completed in %0.2f seconds", c.UI.Info(fmt.Sprintf("Completed in %0.2f seconds",
float64(time.Now().Sub(start))/float64(time.Second))) float64(time.Now().Sub(start))/float64(time.Second)))
} }
if exitCount < ackCount {
badExit++
}
break OUTER break OUTER
case <-errCh: case <-errCh: