diff options
author | abcang <abcang1015@gmail.com> | 2017-09-07 23:44:15 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-07 16:44:14 +0200 |
commit | 6859d4c0289e767955aac3f345074220fe200604 (patch) | |
tree | 4fa4306bb36c1912621ffe8523372f0a0a2489b4 | |
parent | 7d853b514a5b6d6405d2019e414b237e1e123571 (diff) |
Enable UniqueRetryJobMiddleware even when called from sidekiq worker (#4836)
-rw-r--r-- | config/initializers/sidekiq.rb | 3 |
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| |