Beispiel #1
0
 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);
 }
Beispiel #2
0
 public function getJob(Job $previousJob)
 {
     $job = parent::getJob($previousJob);
     $this->currentJob = $job;
     return $job;
 }
Beispiel #3
0
 public function setup(QueueInterface $queue, WorkerInterface $worker)
 {
     parent::setup($queue, $worker);
     $this->runner->setup($queue, $worker);
 }