FIX: Increase defer queue length (#24200)

It's important that there is a limit, but the current limit is too
restrictive.
This commit is contained in:
Daniel Waterworth 2023-11-01 14:02:53 -05:00 committed by GitHub
parent 85c2cc2f9e
commit 5c92d7da22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ module Scheduler
@async = !Rails.env.test?
@queue =
WorkQueue::ThreadSafeWrapper.new(
WorkQueue::FairQueue.new(500) { WorkQueue::BoundedQueue.new(10) },
WorkQueue::FairQueue.new(500) { WorkQueue::BoundedQueue.new(100) },
)
@mutex = Mutex.new