diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-05 06:12:26 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-05 06:12:26 +0300 |
commit | 678db4e3943944ffd1c2b69af56cd5a61375972f (patch) | |
tree | 2dcc37074f276928e709f65f11a1f70ac83957d7 /lib/gitlab/patch | |
parent | cdd01f01dcca9b2ec93f3e0538329c0b6cb222ae (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/patch')
-rw-r--r-- | lib/gitlab/patch/sidekiq_cron_poller.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/gitlab/patch/sidekiq_cron_poller.rb b/lib/gitlab/patch/sidekiq_cron_poller.rb new file mode 100644 index 00000000000..56ca24c68f5 --- /dev/null +++ b/lib/gitlab/patch/sidekiq_cron_poller.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Gitlab + module Patch + module SidekiqCronPoller + 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 |