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
main
Alex Garel 2 years ago committed by GitHub
parent 0c47a8edf4
commit fd116b33db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -319,6 +319,10 @@ $ rq worker -w 'path.to.GeventWorker'
## Round Robin and Random strategies for dequeuing jobs from queues ## 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, 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 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 dequeued job is taken from `q1`, the 2nd from `q2`, the 3rd from `q3`, the 4th

Loading…
Cancel
Save