drealecs / thread-worker

PHP multi-thread worker message based library

Home Page:http://drealecs.github.io/thread-worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

manager for workers

drealecs opened this issue · comments

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.

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