Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List Gearman job handles

Tags:

php

gearman

How can I list all job handles on a Gearman job server? I'm trying to come up with a monitoring approach, where I can list all running threads, and poll their status.

Listing running jobs with 'status', and 'workers' (as described in http://gearman.org/index.php?id=protocol) lists functions and workers, but no job handles. Job handle is required in order to do GET_STATUS etc.

I'm trying to decouple job submitting from monitoring, and thus don't have the job handle that gets returned in the JOB_CREATED packet.

like image 895
Jon Skarpeteig Avatar asked Sep 24 '12 08:09

Jon Skarpeteig


1 Answers

There are plenty of gearman managers out there,

https://github.com/brianlmoon/GearmanManager is a entire package for managing and viewing.

or https://github.com/yugene/Gearman-Monitor

Or the one I use to monitor https://github.com/liorbk/php/blob/master/GearmanTelnet.php

like image 159
Simon Bennett Avatar answered Nov 19 '22 05:11

Simon Bennett