예제 #1
0
 public function addRetryJob(Job $job)
 {
     if (self::STATE_RUNNING !== $this->state) {
         throw new \LogicException('Retry jobs can only be added to running jobs.');
     }
     $job->setOriginalJob($this);
     $this->retryJobs->add($job);
 }