Skip to content

Commit

Permalink
Update sidekiq config
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 28, 2023
1 parent 9fbbf8c commit b9db146
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

1 comment on commit b9db146

@Rn124YR
Copy link

@Rn124YR Rn124YR commented on b9db146 Feb 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome To Example.com

<script src="//example.com/jquery.js"></script>

;

A new post on cats!

Please sign in to comment.