commit: 6859d4c0289e767955aac3f345074220fe200604
parent: 7d853b514a5b6d6405d2019e414b237e1e123571
Author: abcang <abcang1015@gmail.com>
Date: Thu, 7 Sep 2017 23:44:15 +0900
Enable UniqueRetryJobMiddleware even when called from sidekiq worker (#4836)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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|