wa0x6e / Fresque

A command line tool to manage your php-resque workers
MIT License
128 stars 56 forks source link

What's the point of running same scheduler workers count as in default queue? #62

Open comradefuzz opened 8 years ago

comradefuzz commented 8 years ago

I have workers = 5 in [Default] section of my fresque.ini file. When I run fresque startScheduler it creates 5 worker instances. This happens because of direct assignment of $count variable in Fresque class. What is the point of such behavior? Why should I run same count of scheduling queue workers as in default queue? It doesn't make sense to me.

wa0x6e commented 8 years ago

true, only one scheduler worker should run at same time

comradefuzz commented 8 years ago

BTW I have a simple workaround on this issue. If only default queue needed you can simply set [Default] -> workers = 1 then set [Queues] -> default[workers] = 5. Using fresque load instead of start you can run desired amount of workers. Scheduler will start a single instance though.