mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Adjust queues to prioritize account syncs (#1682)
This commit is contained in:
parent
7d04ea1071
commit
3140835f28
12 changed files with 37 additions and 12 deletions
|
@ -11,6 +11,14 @@ Rails.application.configure do
|
|||
}
|
||||
end
|
||||
|
||||
# 5 queue threads + 3 for job listener, cron, executor = 8 threads allocated
|
||||
config.queues = {
|
||||
"latency_low" => { max_threads: 1, priority: 10 }, # ~30s jobs
|
||||
"latency_low,latency_medium" => { max_threads: 2, priority: 5 }, # ~1-2 min jobs
|
||||
"latency_low,latency_medium,latency_high" => { max_threads: 1, priority: 1 }, # ~5+ min jobs
|
||||
"*" => { max_threads: 1, priority: 0 } # fallback queue
|
||||
}
|
||||
|
||||
# Auth for jobs admin dashboard
|
||||
ActiveSupport.on_load(:good_job_application_controller) do
|
||||
before_action do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue