GearmanClient::jobStatus

(PECL gearman >= 0.5.0) Get the status of a background job public array GearmanClient::jobStatus ( string $job_handle ) Object oriented style (method): Gets the status for a background job given a job handle. The status information will specify whether the job is known, whether the job is currently running, and the percentage completion. Parameters: job_handle The job

GearmanClient::getErrno

(PECL gearman >= 0.5.0) Get an errno value public int GearmanClient::getErrno ( void ) Value of errno in the case of a GEARMAN_ERRNO return value. Returns: A valid Gearman errno. See also: GearmanClient::error() -

GearmanClient::error

(PECL gearman >= 0.5.0) Returns an error string for the last error encountered. public string GearmanClient::error ( void ) Returns an error string for the last error encountered. Returns: A human readable error string. See also: GearmanClient::getErrno() -

GearmanClient::echo

(PECL gearman >= 0.5.0) Send data to all job servers to see if they echo it back [deprecated] public bool GearmanClient::echo ( string $workload ) The GearmanClient::echo() method is deprecated as of pecl/gearman 1.0.0. Use GearmanClient::ping(). Parameters: workload Some arbitrary serialized data to be echo back Returns: Returns TRUE on succe

GearmanClient::doStatus

(PECL gearman >= 0.5.0) Get the status for the running task public array GearmanClient::doStatus ( void ) Returns the status for the running task. This should be used between repeated GearmanClient::doNormal() calls. Returns: An array representing the percentage completion given as a fraction, with the first element the numerator and the second element the denomintor.

GearmanClient::doNormal

(No version information available, might only be in Git) Run a single task and return a result public string GearmanClient::doNormal ( string $function_name, string $workload [, string $unique ] ) Runs a single task and returns a string representation of the result. It is up to the GearmanClient and GearmanWorker to agree on the format of the result. Parameters: function_name

GearmanClient::doLowBackground

(PECL gearman >= 0.5.0) Run a low priority task in the background public string GearmanClient::doLowBackground ( string $function_name, string $workload [, string $unique ] ) Runs a low priority task in the background, returning a job handle which can be used to get the status of the running task. Normal and high priority tasks take precedence over low priority tasks in the job queue. Parameters:

GearmanClient::doLow

(PECL gearman >= 0.5.0) Run a single low priority task public string GearmanClient::doLow ( string $function_name, string $workload [, string $unique ] ) Runs a single low priority task and returns a string representation of the result. It is up to the GearmanClient and GearmanWorker to agree on the format of the result. Normal and high priority tasks will get precedence over low priority tasks in the job queue.

GearmanClient::doJobHandle

(PECL gearman >= 0.5.0) Get the job handle for the running task public string GearmanClient::doJobHandle ( void ) Gets that job handle for a running task. This should be used between repeated GearmanClient::doNormal() calls. The job handle can then be used to get information on the task. Returns: The job handle for the running task.

GearmanClient::doHighBackground

(PECL gearman >= 0.5.0) Run a high priority task in the background public string GearmanClient::doHighBackground ( string $function_name, string $workload [, string $unique ] ) Runs a high priority task in the background, returning a job handle which can be used to get the status of the running task. High priority tasks take precedence over normal and low priority tasks in the job queue. Parameters: