Service/GearmanClient.php
public function callJob($name, $params = '', $unique = null)
    {
        $worker = $this->getJob($name);
        $methodCallable = $worker['job']['defaultMethod'];

        return $this->enqueue($name, $params, $methodCallable, $unique);
    }
public function callJob($name, $params = '', $unique = null)
    {
        $worker = $this->getJob($name);
        $methodCallable = $worker['job']['defaultMethod'];

        return $this->enqueue($name, $params, $methodCallable, $unique);
    }
public function callJob ( $ name , $ params = '' , $ unique = null ) { $ worker = $ this -> getJob ( $ name ) ; $ methodCallable = $ worker [ 'job' ] [ 'defaultMethod' ] ; return $ this -> enqueue ( $ name , $ params , $ methodCallable , $ unique ) ; }
Runs a single task and returns some result, depending of method called.
Method called depends of default callable method setted on gearman
settings or overwritted on work or job annotations

@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 mixed result depending of method called.
Runs a single task and returns some result depending of method called . Method called depends of default callable method setted on gearman settings or overwritted on work or job annotations