how to explicitely give priorities to the queues with python-rq
Asked Answered
C

1

10

I am trying python-rq and I do not see how to explicitely give priorities to the queues?

Does the priority come from the order they are defined when the worker is launched?

rqworker queueA queueB queueC

queueA is prioritized compare to queueB and queueC ?

Colvert answered 15/10, 2014 at 21:42 Comment(0)
S
11

You are right.

The order of the arguments queueA, queueB, queueC defines the priority.

For more details - http://python-rq.org/docs/workers/

Spoke answered 11/2, 2015 at 10:59 Comment(2)
In the link you gave, there is literraly nothing bout priority. The docs vaguely say tha you can put something into config QUEUES = ['high', 'default', 'low']Bookout
@Bookout the order of the queues in the list defines the priority. The first item gets the highest priority, while the second item gets the second highest priority and so on.Spoke

© 2022 - 2024 — McMap. All rights reserved.