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

sidekiq_poller.rb « patch « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d4264cec1abcaea93e27d87a0b590cb16aea90f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Gitlab
  module Patch
    module SidekiqPoller
      def enqueue
        Rails.application.reloader.wrap do
          ::Gitlab::WithRequestStore.with_request_store do
            super
          ensure
            ::Gitlab::Database::LoadBalancing.release_hosts
          end
        end
      end
    end
  end
end