discourse/config/initializers/sidekiq.rb

5 lines
193 B
Ruby

sidekiq_redis = { url: $redis.url, namespace: 'sidekiq' }
Sidekiq.configure_server { |config| config.redis = sidekiq_redis }
Sidekiq.configure_client { |config| config.redis = sidekiq_redis }