debian-mirror-gitlab/config/initializers/diagnostic_reports.rb
2022-11-25 23:54:43 +05:30

9 lines
253 B
Ruby

# frozen_string_literal: true
return unless Gitlab::Utils.to_boolean(ENV['GITLAB_DIAGNOSTIC_REPORTS_ENABLED'])
return unless Gitlab::Runtime.puma?
Gitlab::Cluster::LifecycleEvents.on_worker_start do
Gitlab::Memory::ReportsDaemon.instance.start
end