In gearman command line tool, it allow to control the times of run before exiting.
-c <count> - Number of jobs for worker to run before exiting
The goal: one worker takes one job and stop by itself.
Try: I set the @worker_enabled to false, after taking the job. However, it doesn't stop after the job finished. And it stop after the queue is empty. Doesn't work like we expected
In gearman command line tool, it allow to control the times of run before exiting.
-c <count> - Number of jobs for worker to run before exitingThe goal: one worker takes one job and stop by itself.
Try: I set the @worker_enabled to false, after taking the job. However, it doesn't stop after the job finished. And it stop after the queue is empty. Doesn't work like we expected