1# frozen_string_literal: true 2 3# Technical debt, this should be ideally upstreamed. 4# 5# However, there's currently no way to hook before doing 6# graceful shutdown today. 7# 8# Follow-up the issue: https://gitlab.com/gitlab-org/gitlab/issues/34107 9 10return unless Gitlab::Runtime.puma? 11 12Puma::Cluster.prepend(::Gitlab::Cluster::Mixins::PumaCluster) 13