Module: Gitlab::Patch::SidekiqPoller

Defined in:
lib/gitlab/patch/sidekiq_poller.rb

Instance Method Summary collapse

Instance Method Details

#enqueueObject


6
7
8
9
10
11
12
13
14
# File 'lib/gitlab/patch/sidekiq_poller.rb', line 6

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