public function postProcessJob(Job $job) { parent::postProcessJob($job); if (!$this->replyTo) { return; } if (!$this->isTubeWatched($this->replyTo)) { $this->log->debug("No one is listening, not pushing to return queue"); return; } $data = array('result' => $job->getResult()); $this->queue->push($this->replyTo, $data); }
public function getJob(Job $previousJob) { $job = parent::getJob($previousJob); $this->currentJob = $job; return $job; }
public function setup(QueueInterface $queue, WorkerInterface $worker) { parent::setup($queue, $worker); $this->runner->setup($queue, $worker); }