My application has multiple queues and I'm trying to prioritize specific queues.
resque-pool.yml
development:"high_priority, med_priority, low_priority": 1
According to the resque-pool documentation (https://github.com/nevans/resque-pool) example:
resque-pool.yml
foo: 1bar: 2"foo,bar,baz": 1production:"foo,bar,baz": 4
"This will start up seven worker processes, one exclusively for the foo queue, two exclusively for the bar queue, and four workers looking at all queues in priority. With the config above, this is similar to if you ran the following:"
rake resque:work RAILS_ENV=production QUEUES=foo &rake resque:work RAILS_ENV=production QUEUES=bar &rake resque:work RAILS_ENV=production QUEUES=bar &rake resque:work RAILS_ENV=production QUEUES=foo,bar,baz &rake resque:work RAILS_ENV=production QUEUES=foo,bar,baz &rake resque:work RAILS_ENV=production QUEUES=foo,bar,baz &rake resque:work RAILS_ENV=production QUEUES=foo,bar,baz &
I think queues are prioritized by the order they are in within the yaml files but would want to verify it as well.
How would I manually verify that the jobs within the highest_priority queue are being prioritized over jobs in the med_priority and low_priority queue? Am I missing something in order to prioritize them correctly?