Fix Ruby 2.5 incompatibility (#17465)
This commit is contained in:
parent
73a585dd64
commit
edd7dad3e2
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class Scheduler::AccountsStatusesCleanupScheduler
|
|||
end
|
||||
|
||||
def compute_budget
|
||||
threads = Sidekiq::ProcessSet.new.filter { |x| x['queues'].include?('push') }.map { |x| x['concurrency'] }.sum
|
||||
threads = Sidekiq::ProcessSet.new.select { |x| x['queues'].include?('push') }.map { |x| x['concurrency'] }.sum
|
||||
[PER_THREAD_BUDGET * threads, MAX_BUDGET].min
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue