Mmoreram\GearmanBundle\Service\GearmanExecute::executeWorker PHP Method

executeWorker() public method

Executes a worker given a workerName subscribing all his jobs inside and given settings and annotations of worker and jobs
public executeWorker ( string $workerName, array $options = [] )
$workerName string Name of worker to be executed
$options array
    public function executeWorker($workerName, array $options = array())
    {
        $worker = $this->getWorker($workerName);
        if (false !== $worker) {
            $this->callJob($worker, $options);
        }
    }