Replies: 3 comments 6 replies
-
Hi @douglara! I just wanted to double-check:
If it's a bug report:
I think this is related to # config/application.rb
config.good_job.max_cache = 50_000 If it's a feature request: GoodJob will execute jobs in the order that they're enqueued after accounting for priority and schedule. This would explain why you're seeing queue_1 finish all of its jobs before starting jobs from queue_2. GoodJob could have a feature to instead execute jobs in random order. I think that would address your need. |
Beta Was this translation helpful? Give feedback.
-
This is a somewhat common scenario for async queues. I'm not sure it's worth the effort to build out GoodJob to support this, since it's quite a lot of work. Common approaches are (that would work with GoodJob today) are:
More background: |
Beta Was this translation helpful? Give feedback.
-
Guys, sorry my English I'm try a new scope that on get next job randomize queue and seems with low cost Follow the code: Do you see a high problem? I'm testing with benchmark with 100 jobs and 5 queues |
Beta Was this translation helpful? Give feedback.
-
Hi community!
Im search approach to resolve a problem and I thought to share to get help and feedback
Exemple:
With GoodJob, has one possibility do this worker process jobs from user 1 with 10 threads and after user 2 enque your jobs split thereads for 5 jobs from user 1 and 5 jobs from user 2?
I have problems with long delay to process jobs from user 2 it start after user 1 jobs is clean.
Has anyone had an similares problem?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions