Skip to content

Commit

Permalink
Merge pull request #4 from remy727/sidekiq-configuration
Browse files Browse the repository at this point in the history
Configure Sidekiq
  • Loading branch information
remy727 authored Jul 16, 2023
2 parents 0ebacaa + 9b8ec3c commit 33d15aa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
23 changes: 11 additions & 12 deletions web/config/initializers/sidekiq.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# frozen_string_literal: true

redis_hsh = {
url: ENV["REDIS_URL"] || "redis://localhost:6379",
ssl_params: {
verify_mode: OpenSSL::SSL::VERIFY_NONE
},
network_timeout: 5,
pool_timeout: 5,
}

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

Sidekiq.configure_client do |config|
config.redis = {
url: ENV["REDIS_URL"] || "redis://localhost:6379",
ssl_params: {
verify_mode: OpenSSL::SSL::VERIFY_NONE
}
}
config.redis = redis_hsh
end
3 changes: 3 additions & 0 deletions web/config/sidekiq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:concurrency: 10
production:
:concurrency: 5

0 comments on commit 33d15aa

Please sign in to comment.