Use SIGTERM during Sidekiq memory shutdown
This makes the memory killer behave more like 'sidekiqctl stop'.
This commit is contained in:
parent
53534682a3
commit
103c405339
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ module Gitlab
|
|||
"in #{GRACE_TIME} seconds"
|
||||
sleep(GRACE_TIME)
|
||||
|
||||
Sidekiq.logger.warn "sending SIGUSR1 to PID #{Process.pid}"
|
||||
Process.kill('SIGUSR1', Process.pid)
|
||||
Sidekiq.logger.warn "sending SIGTERM to PID #{Process.pid}"
|
||||
Process.kill('SIGTERM', Process.pid)
|
||||
|
||||
Sidekiq.logger.warn "waiting #{SHUTDOWN_WAIT} seconds before sending "\
|
||||
"#{SHUTDOWN_SIGNAL} to PID #{Process.pid}"
|
||||
|
|
Loading…
Reference in a new issue