drealecs / thread-worker

PHP multi-thread worker message based library
http://drealecs.github.io/thread-worker
6 stars 0 forks source link

manager for workers #1

Open drealecs opened 10 years ago

drealecs commented 10 years ago

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.

guice commented 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.

drealecs commented 10 years ago

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