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 9aa232ea2e
1 changed files with 3 additions and 0 deletions

View File

@ -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: