Skip to content

Commit

Permalink
Merge pull request #1816 from codetriage/schneems/sidekiq-pool
Browse files Browse the repository at this point in the history
Update sidekiq config
  • Loading branch information
schneems authored Oct 28, 2023
2 parents 9fbbf8c + b9db146 commit 2f19341
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# frozen_string_literal: true

sidekiq_config = {
Sidekiq.default_configuration.redis = {
url: ENV["REDIS_URL"],
ssl_params: {verify_mode: OpenSSL::SSL::VERIFY_NONE}
ssl_params: {
verify_mode: OpenSSL::SSL::VERIFY_NONE
}
}

Sidekiq.configure_server do |config|
config.redis = sidekiq_config
end

Sidekiq.configure_client do |config|
config.redis = sidekiq_config
end

if Sidekiq.server?
Rails.application.config.active_record.warn_on_records_fetched_greater_than = 1500
end

0 comments on commit 2f19341

Please sign in to comment.