E
E
entermix2015-11-13 18:50:43
Kohana
entermix, 2015-11-13 18:50:43

How to start Gearman Worker correctly?

There is Gearman + Kohana ready to work, how to start Worker correctly?
Set a Minion_Task task?

$worker = Gearman_Worker::instance('default');
        while ($worker->work()) ;

Do I think right? How often should you run?
After all, a worker can spin forever, what happens if the cron runs it several times? (I suspect it's nothing, will it just ignore it if it's already running?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
matperez, 2015-11-13
@matperez

Use https://github.com/brianlmoon/GearmanManager

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question