Browse Source

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.
pull/3059/head
James Phillips 8 years ago committed by GitHub
parent
commit
9aa232ea2e
  1. 3
      command/exec.go

3
command/exec.go

@ -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…
Cancel
Save