about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2017-09-07 23:44:15 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-09-07 16:44:14 +0200
commit6859d4c0289e767955aac3f345074220fe200604 (patch)
tree4fa4306bb36c1912621ffe8523372f0a0a2489b4 /config/initializers
parent7d853b514a5b6d6405d2019e414b237e1e123571 (diff)
Enable UniqueRetryJobMiddleware even when called from sidekiq worker (#4836)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/sidekiq.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb
index 61e131336..0ee77730e 100644
--- a/config/initializers/sidekiq.rb
+++ b/config/initializers/sidekiq.rb
@@ -9,6 +9,9 @@ end
 
 Sidekiq.configure_server do |config|
   config.redis = redis_params
+  config.client_middleware do |chain|
+    chain.add Mastodon::UniqueRetryJobMiddleware
+  end
 end
 
 Sidekiq.configure_client do |config|