Resque multiple workers in development mode

后端 未结 2 697
醉酒成梦
醉酒成梦 2021-01-31 21:20

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/9GKk

2条回答
  •  孤街浪徒
    2021-01-31 21:32

    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'
    

提交回复
热议问题