resque Priorities and Queue Lists
Priorities and Queue Lists
Resque doesn’t support numeric priorities but instead uses the order of queues you give it. We call this list of queues the “queue list.”
Let’s say we add a warm_cache queue in addition to our file_serve queue. We’d now start a worker like so:
$ QUEUES=file_serve,warm_cache rake resque:work
When the worker looks for new jobs, it will first check file_serve. If it finds a job, it’ll process it then check file_serve again. It will keep checking file_serve until no more jobs are available. At that point, it will check warm_cache. If it finds a job it’ll process it then check file_serve (repeating the whole process).
Resque doesn’t support numeric priorities but instead uses the order of queues you give it. We call this list of queues the “queue list.”