1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00

Use correct config scope for GoodJob

Signed-off-by: Zach Gollwitzer <zach@maybe.co>
This commit is contained in:
Zach Gollwitzer 2025-02-04 13:21:10 -05:00 committed by GitHub
parent 058830591f
commit 3e06017ae1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,7 +14,7 @@ Rails.application.configure do
config.good_job.on_thread_error = ->(exception) { Rails.error.report(exception) }
# 10 queue threads + 3 for job listener, cron, executor = 13 threads allocated
config.queues = {
config.good_job.queues = {
"latency_low" => { max_threads: 3, priority: 10 }, # ~30s jobs
"latency_low,latency_medium" => { max_threads: 4, priority: 5 }, # ~1-2 min jobs
"latency_low,latency_medium,latency_high" => { max_threads: 2, priority: 1 }, # ~5+ min jobs