GearmanTask
PHP Manual

GearmanTask::isRunning

(PECL gearman >= 0.5.0)

GearmanTask::isRunningTest whether the task is currently running

说明

public bool GearmanTask::isRunning ( void )

Indicates whether or not this task is currently running.

参数

此函数没有参数。

返回值

TRUE if the task is running, FALSE otherwise.


GearmanTask
PHP Manual