Skip to content

Commit

Permalink
Merge pull request #2443 from rdunlop/prepare_for_sidekiq_7
Browse files Browse the repository at this point in the history
update sidekiq to latest < 7
  • Loading branch information
rdunlop authored Sep 29, 2023
2 parents 23541f5 + 79a6a5f commit b7a25d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ GEM
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
concurrent-ruby (1.2.2)
connection_pool (2.3.0)
connection_pool (2.4.1)
consistency_fail (0.3.7)
countries (3.1.0)
i18n_data (~> 0.11.0)
Expand Down Expand Up @@ -607,8 +607,8 @@ GEM
select2-rails (4.0.13)
shoulda-matchers (5.3.0)
activesupport (>= 5.2.0)
sidekiq (6.5.7)
connection_pool (>= 2.2.5)
sidekiq (6.5.9)
connection_pool (>= 2.2.5, < 3)
rack (~> 2.0)
redis (>= 4.5.0, < 5)
simple_form (5.1.0)
Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class Application < Rails::Application
config.redis_host = ENV["REDIS_HOST"]
config.redis_port = ENV["REDIS_PORT"]
# db: 0 # if you have sidekiq for different rails-databases running against the same redis, increment this for each
config.redis_db = ENV["REDIS_DB"]
config.redis_db = ENV["REDIS_DB"].to_i

# where to send users who want to do translations of the registration system
config.translation_website_url = ENV["TRANSLATION_WEBSITE_URL"]
Expand Down
3 changes: 1 addition & 2 deletions config/initializers/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ def self.cache_configuration

def self.sidekiq_configuration
configuration do |config|
# Provided by redis-namespace gem
config[:namespace] = 'SIDEKIQ'
config[:db] += 1
end
end

Expand Down
1 change: 1 addition & 0 deletions config/initializers/rollbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

# Enable delayed reporting (using Sidekiq)
config.use_sidekiq
config.async_json_payload = true
# You can supply custom Sidekiq options:
config.use_sidekiq 'queue' => 'default'

Expand Down

0 comments on commit b7a25d8

Please sign in to comment.