579a7c2654
* Revert "Enable UniqueRetryJobMiddleware even when called from sidekiq worker (#4836)" This reverts commit0080804f44
. * Revert "Do not execute the job with the same arguments as the retry job (#4814)" This reverts commit892aeb7ffe
.
16 lines
323 B
Ruby
16 lines
323 B
Ruby
# frozen_string_literal: true
|
|
|
|
namespace = ENV.fetch('REDIS_NAMESPACE') { nil }
|
|
redis_params = { url: ENV['REDIS_URL'] }
|
|
|
|
if namespace
|
|
redis_params [:namespace] = namespace
|
|
end
|
|
|
|
Sidekiq.configure_server do |config|
|
|
config.redis = redis_params
|
|
end
|
|
|
|
Sidekiq.configure_client do |config|
|
|
config.redis = redis_params
|
|
end
|