Open m-hume opened 7 years ago
Worker has interval which you can modify. By default, it polls every 5 seconds
In the readme there is an example: $worker->setInterval(30) will sleep for 30 secs
Just checked the code
When theres no tasks in the que it returns immediately without $this->_sleep();
line 146 of Worker.php
just submitted the pull https://github.com/anorgan/QuTee/pull/19 cheers
Tnx! Just released it. Tests fail on old versions of PHP because dependancy issues and on PHP 7 because TypeError is not handled well. Everything else works
Thanks for sharing it in the first place! Looking like its going to be very usable. mh
Hi In the examples worker threads are implemented with the following code
Surely this will poll the persistor for new tasks as fast as it can? Should there not be some sort of delay in the loop? Or should it be implemented differently from the examples? cheers