Queue priority across multiple containers #1625
Unanswered
rade-tomovic
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Could you explain what the goal is? "Priority" only ever comes into play when there is a lack of capacity (eg more jobs are present than there are resources to process it). The best practice for performance is not to rely on priority at all: https://github.com/bensheldon/good_job?tab=readme-ov-file#doing-your-best-job-with-goodjob |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
If I have multiple containers running GoodJob, and these containers have 1 or more queues, I'm wondering how can I enforce global "priority" for certain jobs/queues.
I know what when running command I can use
+queue1, queue2to keep them in order, but if I have:container1: queue1, queue2container2: queue3container3: queue4How can I prioritize in a way that it's for example
queue4executed first, then 1 and 2 and then 3.By container, I mean independent Docker based worker, but all of them pointing to the same DB.
Update: if this is better to do from the perspective of jobs, does it make sense to do:
self.priority = Nfor every job, and then just don't care for queues? I'm using version 3.30.1, so I know that there are differences between v4.Beta Was this translation helpful? Give feedback.
All reactions