Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sidekiq config #1816

Merged
merged 1 commit into from
Oct 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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