mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-29 12:03:57 +00:00
1aad015bbb
* Revert "Enable UniqueRetryJobMiddleware even when called from sidekiq worker (#4836)" This reverts commit6859d4c028
. * Revert "Do not execute the job with the same arguments as the retry job (#4814)" This reverts commitbe7ffa2d75
.
17 lines
323 B
Ruby
17 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
|