Skip to content

Commit

Permalink
Raise Redis timeout to handle Heroku...
Browse files Browse the repository at this point in the history
  • Loading branch information
northeastprince committed Oct 20, 2024
1 parent 08188fb commit 8253219
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
redis = {
url: ENV["REDIS_URL"], timeout: 10.seconds
ssl_params: {verify_mode: OpenSSL::SSL::VERIFY_NONE}
}

Sidekiq.configure_server do |config|
config.redis = {
url: ENV["REDIS_URL"],
ssl_params: {verify_mode: OpenSSL::SSL::VERIFY_NONE}
}
config.redis = redis

config.capsule("AWS SES") do |capsule| # avoid rate limits
Rails.configuration.action_mailer.deliver_later_queue_name = "SES"
Expand All @@ -12,8 +14,5 @@
end

Sidekiq.configure_client do |config|
config.redis = {
url: ENV["REDIS_URL"],
ssl_params: {verify_mode: OpenSSL::SSL::VERIFY_NONE}
}
config.redis = redis
end

0 comments on commit 8253219

Please sign in to comment.