mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
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
9aa232ea2e
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user