Fresque
Fresque copied to clipboard
What's the point of running same scheduler workers count as in default queue?
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.
true, only one scheduler worker should run at same time
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.