Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/puma.example.development.rb')
-rw-r--r--config/puma.example.development.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/puma.example.development.rb b/config/puma.example.development.rb
index ad33250011e..3164ffe3ef4 100644
--- a/config/puma.example.development.rb
+++ b/config/puma.example.development.rb
@@ -54,7 +54,8 @@ end
before_fork do
# Signal to the puma killer
- Gitlab::Cluster::PumaWorkerKillerInitializer.start @config.options unless ENV['DISABLE_PUMA_WORKER_KILLER']
+ enable_puma_worker_killer = !Gitlab::Utils.to_boolean(ENV['DISABLE_PUMA_WORKER_KILLER'])
+ Gitlab::Cluster::PumaWorkerKillerInitializer.start(@config.options) if enable_puma_worker_killer
# Signal application hooks that we're about to fork
Gitlab::Cluster::LifecycleEvents.do_before_fork