7

如何列出 Gearman 作业服务器上的所有作业句柄?我正在尝试提出一种监控方法,我可以在其中列出所有正在运行的线程,并轮询它们的状态。

列出具有“状态”和“工人”的正在运行的作业(如http://gearman.org/index.php?id=protocol中所述)列出了函数和工人,但没有作业句柄。需要作业句柄才能执行 GET_STATUS 等。

我正在尝试将作业提交与监控分离,因此没有在 JOB_CREATED 数据包中返回的作业句柄。

4

1 回答 1

1

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

于 2012-10-06T15:42:21.757 回答