Update sidekiq to version 7 (#34745)
This commit is contained in:
parent
ba5320671c
commit
37c82a3003
9 changed files with 28 additions and 27 deletions
|
@ -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,
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue