summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2018-11-22 17:28:09 +0100
committerStan Hu <stanhu@gmail.com>2018-11-22 09:22:12 -0800
commit1b8a791829a3c6226f5185f2433ddf632d2d945d (patch)
treea62917a2bce7f9136609af3149d557960a97dbc2 /config/initializers
parentba9eeea4ee2eb3a43cc3d107a2590a6227af89ed (diff)
downloadgitlab-ce-1b8a791829a3c6226f5185f2433ddf632d2d945d.tar.gz
Clear BatchLoader context between Sidekiq jobs
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/sidekiq.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb
index 565efc858d1..4210be2c701 100644
--- a/config/initializers/sidekiq.rb
+++ b/config/initializers/sidekiq.rb
@@ -20,6 +20,7 @@ Sidekiq.configure_server do |config|
chain.add Gitlab::SidekiqMiddleware::ArgumentsLogger if ENV['SIDEKIQ_LOG_ARGUMENTS'] && !enable_json_logs
chain.add Gitlab::SidekiqMiddleware::Shutdown
chain.add Gitlab::SidekiqMiddleware::RequestStoreMiddleware unless ENV['SIDEKIQ_REQUEST_STORE'] == '0'
+ chain.add Gitlab::SidekiqMiddleware::BatchLoader
chain.add Gitlab::SidekiqStatus::ServerMiddleware
end