GearmanJob::sendFail

(PECL gearman >= 0.6.0) Send fail status public bool GearmanJob::sendFail ( void ) Sends failure status for this job, indicating that the job failed in a known way (as opposed to failing due to a thrown exception). Returns: Returns TRUE on success or FALSE on failure. See also: GearmanJob::sendException() -

GearmanJob::sendException

(PECL gearman >= 0.6.0) Send exception for running job (exception) public bool GearmanJob::sendException ( string $exception ) Sends the supplied exception when this job is running. Parameters: exception An exception description. Returns: Returns TRUE on success or FALSE on failure.

GearmanJob::sendData

(PECL gearman >= 0.6.0) Send data for a running job public bool GearmanJob::sendData ( string $data ) Sends data to the job server (and any listening clients) for this job. Parameters: data Arbitrary serialized data. Returns: Returns TRUE on success or FALSE on failure. See also

GearmanJob::sendComplete

(PECL gearman >= 0.6.0) Send the result and complete status public bool GearmanJob::sendComplete ( string $result ) Sends result data and the complete status update for this job. Parameters: result Serialized result data. Returns: Returns TRUE on success or FALSE on failure. See

GearmanJob::returnCode

(PECL gearman >= 0.5.0) Get last return code public int GearmanJob::returnCode ( void ) Returns the last return code issued by the job server. Returns: A valid Gearman return code. See also: GearmanTask::returnCode() -

GearmanJob::handle

(PECL gearman >= 0.5.0) Get the job handle public string GearmanJob::handle ( void ) Returns the opaque job handle assigned by the job server. Returns: An opaque job handle. See also: GearmanTask::jobHandle() -

GearmanJob::functionName

(PECL gearman >= 0.5.0) Get function name public string GearmanJob::functionName ( void ) Returns the function name for this job. This is the function the work will execute to perform the job. Returns: The name of a function. See also: GearmanTask::function() -

GearmanJob::fail

(PECL gearman <= 0.5.0) Send fail status (deprecated) public bool GearmanJob::fail ( void ) Sends failure status for this job, indicating that the job failed in a known way (as opposed to failing due to a thrown exception). Note: This method has been replaced by GearmanJob::sendFail() in the 0.6.0 release of the Gearman extension. Returns: Returns TRUE on success or FALSE on failure.

GearmanJob::exception

(PECL gearman <= 0.5.0) Send exception for running job (deprecated) public bool GearmanJob::exception ( string $exception ) Sends the supplied exception when this job is running. Note: This method has been replaced by GearmanJob::sendException() in the 0.6.0 release of the Gearman extension. Parameters: exception An exception description. Retur

GearmanJob::data

(PECL gearman <= 0.5.0) Send data for a running job (deprecated) public bool GearmanJob::data ( string $data ) Sends data to the job server (and any listening clients) for this job. Note: This method has been replaced by GearmanJob::sendData() in the 0.6.0 release of the Gearman extension. Parameters: data Arbitrary serialized data. Returns: