Skip to content

Commit

Permalink
bugfix/add redis url on configure_client
Browse files Browse the repository at this point in the history
  • Loading branch information
cancelei committed Nov 7, 2024
1 parent 3b914fc commit 99c68e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def not_past_scheduled_time?(current_time)
end

Sidekiq.configure_client do |config|
sidekiq_url = ApplicationConfig["REDIS_SIDEKIQ_URL"] || ApplicationConfig["REDIS_URL"]
config.redis = { url: sidekiq_url,
ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } }
config.client_middleware do |chain|
chain.add SidekiqUniqueJobs::Middleware::Client
end
Expand Down

0 comments on commit 99c68e5

Please sign in to comment.