Resque multiple workers in development mode

Stpn picture Stpn · May 3, 2012 · Viewed 10.1k times · Source

Hi is it possible to run multiple Resque workers simultaneously in development? I found this bit of code, but not sure if it will work and how..

http://pastebin.com/9GKk8GwR

So far I am using the standard

bundle exec env rake resque:work QUEUE='*'

redis-server /usr/local/etc/redis.conf

Answer

Dylan Markow picture Dylan Markow · May 3, 2012

You need to add a COUNT environment variable and then change resque:work to resque:workers. For example, to start 3 workers:

bundle exec env rake resque:workers QUEUE='*' COUNT='3'