From fd116b33dbecd3acb39e33265834934aec4866b6 Mon Sep 17 00:00:00 2001 From: Alex Garel Date: Thu, 22 Sep 2022 05:51:20 +0200 Subject: [PATCH] doc: default queues order is a priority order (#1704) * doc: default queues order is a priority order In introduction, we say that queue order matters, but we are not very specific. Added a paragraph to explicit that. * doc: fix typo --- docs/docs/workers.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/workers.md b/docs/docs/workers.md index ad4ab652..6294f754 100644 --- a/docs/docs/workers.md +++ b/docs/docs/workers.md @@ -319,6 +319,10 @@ $ rq worker -w 'path.to.GeventWorker' ## Round Robin and Random strategies for dequeuing jobs from queues +The default worker considers the order of queues as their priority order, +and if a task is pending in a higher priority queue +it will be selected before any other in queues with lower priority. + In certain circumstances it can be useful that a when a worker is listening to multiple queues, say `q1`,`q2`,`q3`, the jobs are dequeued using a Round Robin strategy. That is, the 1st dequeued job is taken from `q1`, the 2nd from `q2`, the 3rd from `q3`, the 4th