mirror of
https://github.com/discourse/discourse.git
synced 2025-04-20 15:41:45 +08:00

This commit changes the way Sidekiq is restarted when memory limit is exceeded. The HUP signal was replaced with TERM, as mentioned in the official documentation. The stopping timeout has been set to 10 seconds to account for the Sidekiq timeout (5 seconds) and another for it shutdown cleanly (5 more seconds). See https://github.com/sidekiq/sidekiq/wiki/Deployment.