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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-14 15:08:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-14 15:08:03 +0300
commit61a82b8ec062d6f122dadd38783c7754cef7ce2b (patch)
tree071d1ded4f507d77bac97156aa1fa85c95c0cba5 /config/puma.rb.example
parent3ed578edf525bce3167860b84f6b43bab5065cf5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/puma.rb.example')
-rw-r--r--config/puma.rb.example5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/puma.rb.example b/config/puma.rb.example
index c70baf6570e..59844b4aecf 100644
--- a/config/puma.rb.example
+++ b/config/puma.rb.example
@@ -57,6 +57,11 @@ on_worker_boot do
Gitlab::Cluster::LifecycleEvents.do_worker_start
end
+on_worker_shutdown do
+ # Signal application hooks that a worker is shutting down
+ Gitlab::Cluster::LifecycleEvents.do_worker_stop
+end
+
# Preload the application before starting the workers; this conflicts with
# phased restart feature. (off by default)
preload_app!