GearmanClient::doHigh

(PECL gearman >= 0.5.0) Run a single high priority task public string GearmanClient::doHigh ( string $function_name, string $workload [, string $unique ] ) Runs a single high 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. High priority tasks will get precedence over normal and low priority tasks in the job queue.

GearmanClient::doBackground

(PECL gearman >= 0.5.0) Run a task in the background public string GearmanClient::doBackground ( string $function_name, string $workload [, string $unique ] ) Runs a task in the background, returning a job handle which can be used to get the status of the running task. Parameters: function_name A registered function the worker is to execute workl

GearmanClient::do

(PECL gearman >= 0.5.0) Run a single task and return a result [deprecated] public string GearmanClient::do ( string $function_name, string $workload [, string $unique ] ) The GearmanClient::do() method is deprecated as of pecl/gearman 1.0.0. Use GearmanClient::doNormal(). Parameters: function_name A registered function the worker is to execute wo

GearmanClient::data

(PECL gearman <= 0.5.0) Get the application data (deprecated) public string GearmanClient::data ( void ) Get the application data previously set with GearmanClient::setData(). Note: This method was replaced by GearmanClient::setContext() in the 0.6.0 release of the Gearman extension. Returns: The same string data set with GearmanClient::setData()

GearmanClient::context

(PECL gearman >= 0.6.0) Get the application context public string GearmanClient::context ( void ) Get the application context previously set with GearmanClient::setContext(). Returns: The same context data structure set with GearmanClient::setContext() See also: GearmanClient::setContext() -

GearmanClient::__construct

(PECL gearman >= 0.5.0) Create a GearmanClient instance public GearmanClient::__construct ( void ) Creates a GearmanClient instance representing a client that connects to the job server and submits tasks to complete. Returns: A GearmanClient object. See also: GearmanClient::clone() -

GearmanClient::clone

(PECL gearman >= 0.5.0) Create a copy of a GearmanClient object public GearmanClient GearmanClient::clone ( void ) Creates a copy of a GearmanClient object. Returns: A GearmanClient on success, FALSE on failure.

GearmanClient::clearCallbacks

(PECL gearman >= 0.5.0) Clear all task callback functions public bool GearmanClient::clearCallbacks ( void ) Clears all the task callback functions that have previously been set. Returns: Always returns TRUE. See also: GearmanClient::setDataCallback() - GearmanClient::setCompleteCal

GearmanClient::addTaskStatus

(PECL gearman >= 0.5.0) Add a task to get status public GearmanTask GearmanClient::addTaskStatus ( string $job_handle [, string &$context ] ) Used to request status information from the Gearman server, which will call the specified status callback (set using GearmanClient::setStatusCallback()). Parameters: job_handle The job handle for the task to get status for

GearmanClient::addTaskLowBackground

(PECL gearman >= 0.5.0) Add a low priority background task to be run in parallel public GearmanTask GearmanClient::addTaskLowBackground ( string $function_name, string $workload [, mixed &$context [, string $unique ]] ) Adds a low priority background task to be run in parallel with other tasks. Call this method for all the tasks to be run in parallel, then call GearmanClient::runTasks() to perform the work. Tasks with