debian-mirror-gitlab/lib/gitlab/patch/sidekiq_poller.rb

18 lines
354 B
Ruby
Raw Normal View History

2021-12-07 22:27:20 +05:30
# frozen_string_literal: true
module Gitlab
module Patch
2022-01-26 12:08:38 +05:30
module SidekiqPoller
2021-12-07 22:27:20 +05:30
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