On my local machine I can do
QUEUES=a,b,c,d rake resque:work
And it processes those queues in that order. However, on Heroku Cedar I add this to my procfile:
worker: QUEUES=a,b,c,d exec bundle exec rake resque:work
And it crashes the app on deploy. I’m probably missing something dumb, but I’m stumped.
PS I prefix the command with exec because of a bug with resque not properly decrementing the worker count.
You shouldn’t need the initial
exec. The entry should look like this:Use @hone’s fork to properly clean up workers when they quit. In your Gemfile: