manager for workers
drealecs opened this issue · comments
Alexandru Pătrănescu commented
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.
Philip commented
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.
Alexandru Pătrănescu commented
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