Service/GearmanExecute.php
public function executeJob($jobName, array $options = array(), \GearmanWorker $gearmanWorker = null)
    {
        $worker = $this->getJob($jobName);

        if (false !== $worker) {
            $this->callJob($worker, $options, $gearmanWorker);
        }
    }
public function executeJob($jobName, array $options = array(), \GearmanWorker $gearmanWorker = null)
    {
        $worker = $this->getJob($jobName);

        if (false !== $worker) {
            $this->callJob($worker, $options, $gearmanWorker);
        }
    }
public function executeJob ( $ jobName , array $ options = array ( ) , \ GearmanWorker $ gearmanWorker = null ) { $ worker = $ this -> getJob ( $ jobName ) ; if ( false !== $ worker ) { $ this -> callJob ( $ worker , $ options , $ gearmanWorker ) ; } }
Executes a job given a jobName and given settings and annotations of job

@param string $jobName Name of job to be executed
@param array $options Array of options passed to the callback
@param \GearmanWorker $gearmanWorker Worker instance to use
Executes a job given a jobName and given settings and annotations of job