Fresque icon indicating copy to clipboard operation
Fresque copied to clipboard

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

Open comradefuzz opened this issue 8 years ago • 2 comments

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.

comradefuzz avatar Jun 23 '16 14:06 comradefuzz

true, only one scheduler worker should run at same time

wa0x6e avatar Jun 23 '16 16:06 wa0x6e

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.

comradefuzz avatar Jun 23 '16 16:06 comradefuzz