예제 #1
0
 public function preProcessJob(Job $job)
 {
     if ($job instanceof UnserializableJob) {
         $data = $this->convertJobData($job->getData());
         $job = new Job($job->getId(), $data, $this->queue);
     }
     return parent::preProcessJob($job);
 }
예제 #2
0
 public function getJob(Job $previousJob)
 {
     $job = parent::getJob($previousJob);
     $this->currentJob = $job;
     return $job;
 }