mirror of https://github.com/status-im/consul.git
agent: increase graceful shutdown timeout
When triggering a leave through an INT/TERM signal the hard-coded timeout of 5 seconds is too short to complete the leave successfully. Therefore, the agent always times out. This value should probably configurable.
This commit is contained in:
parent
9224daf585
commit
fe69de3bba
|
@ -813,7 +813,7 @@ func (cmd *Command) Run(args []string) int {
|
||||||
close(gracefulCh)
|
close(gracefulCh)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
gracefulTimeout := 5 * time.Second
|
gracefulTimeout := 15 * time.Second
|
||||||
select {
|
select {
|
||||||
case <-signalCh:
|
case <-signalCh:
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in New Issue