mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 01:11:37 +01: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
.
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
|