Closed cghiban closed 4 years ago
Your get_job_history
calls send_work_complete
. Gearman::Worker->work
executes the sub also.
I guess all will be fine if you remove send_work_complete
from get_job_history
Thanks, this seems to work. I actually added these 2 lines when trying to solve this issue:
$worker->send_work_complete($gearman);
return 'ok';
Basically I need to return something so that the server can remove the jobs?
Got it. Thanks
Hi, I have a worker with this function registered
which I call it once in the background. For some reason this function is executed until I stop the worker:
using gearadmin I can see these:
before starting the worker
after staring the worker, ran gearadmin a few times
$ gearadmin --show-jobs H:server:80 182 0 1
$ gearadmin --show-jobs H:server:80 5 0 1