Service/GearmanClient.php
public function doJob($name, $params = '', $unique = null)
    {
        return $this->enqueue($name, $params, GearmanMethods::GEARMAN_METHOD_DONORMAL, $unique);
    }
public function doJob($name, $params = '', $unique = null)
    {
        return $this->enqueue($name, $params, GearmanMethods::GEARMAN_METHOD_DONORMAL, $unique);
    }
public function doJob ( $ name , $ params = '' , $ unique = null ) { return $ this -> enqueue ( $ name , $ params , GearmanMethods :: GEARMAN_METHOD_DONORMAL , $ 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.

The GearmanClient::do() method is deprecated as of pecl/gearman 1.0.0.
Use GearmanClient::doNormal().

@param string $name   A GearmanBundle registered function the worker is to execute
@param string $params Parameters to send to job as string
@param string $unique A unique ID used to identify a particular task

@return string A string representing the results of running a task.
@deprecated
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 .