Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Number of resque workers

How many workers are initialized by default in Resque queues when the following command is executed?

QUEUE=(QUEUE NAME) rake environment resque:work
like image 308
Mahmoud Kassem Avatar asked Oct 22 '25 03:10

Mahmoud Kassem


1 Answers

rake resque:work starts exactly one worker. If you want to start multiple workers (for example four workers) you need to run:

COUNT=4 rake resque:workers

When you start resque:workers without a COUNT or with a COUNT of 0 then no workers will be started.

You might want to have a look at the implementation of the resque's rake tasks.

like image 162
spickermann Avatar answered Oct 23 '25 18:10

spickermann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!