Update sidekiq to version 7 (#34745)

This commit is contained in:
Matt Jankowski 2025-05-26 11:32:41 -04:00 committed by GitHub
parent ba5320671c
commit 37c82a3003
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 28 additions and 27 deletions

View file

@ -9,7 +9,6 @@ class Mastodon::RedisConfiguration
def base
@base ||= setup_config(prefix: nil, defaults: DEFAULTS)
.merge(namespace: nil)
end
def sidekiq
@ -23,7 +22,7 @@ class Mastodon::RedisConfiguration
expires_in: 10.minutes,
connect_timeout: 5,
pool: {
size: Sidekiq.server? ? Sidekiq[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
size: Sidekiq.server? ? Sidekiq.default_configuration[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
timeout: 5,
},
})