2019-10-16 15:06:17 +00:00
|
|
|
# Technical debt, this should be ideally upstreamed.
|
|
|
|
#
|
|
|
|
# However, there's currently no way to hook before doing
|
|
|
|
# graceful shutdown today.
|
|
|
|
#
|
|
|
|
# Follow-up the issue: https://gitlab.com/gitlab-org/gitlab/issues/34107
|
|
|
|
|
2019-12-17 03:07:45 +00:00
|
|
|
if defined?(::Puma)
|
2019-10-16 15:06:17 +00:00
|
|
|
Puma::Cluster.prepend(::Gitlab::Cluster::Mixins::PumaCluster)
|
2019-12-17 03:07:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
if defined?(::Unicorn::HttpServer)
|
2019-10-16 15:06:17 +00:00
|
|
|
Unicorn::HttpServer.prepend(::Gitlab::Cluster::Mixins::UnicornHttpServer)
|
|
|
|
end
|