udokmeci/yii2-beanstalk

Multiple workers

Closed this issue · 3 comments

What if I want to run several workers, what would be the best implementation?

I use screen,
So why not?

Now we have one controller with all tubes and run one process(basically I followed your documentation), but I thought tube is something that detached from others and tasks will be running parallely among all of them. But it's not. So now if I want to make more workers for one-two tube only, I have to create another controller, refactor current one, then make another command in yii application and run it. But after some time I decide to make changes once again for example, and I need to refactor classes again. Is there more like configuration friendly decision, something that can be setup by configs only? It will be more friendly for deploy process and for scalability.

Ok...