Open drealecs opened 10 years ago
I found this, which seems to work nicely. Just replace "worker.php" contents into their callback function:
https://github.com/jimbojsb/workman
It's not a full management solution, but it's a start.
jimbojsb/workman is only working on unix platform because it uses pcntl extension. one idea would be to use symfony/Process: https://github.com/symfony/Process
There is a need to create a manager that can start and stop workers.
It could be configured by a file that the worker needs to read from.