public function scheduleNextRetry(Job $originalJob)
 {
     return new \DateTime('+' . pow($this->base, count($originalJob->getRetryJobs())) . ' seconds');
 }
예제 #2
0
 /**
  * @depends testAddRetryJob
  */
 public function testIsRetryJob(Job $a)
 {
     $this->assertFalse($a->isRetryJob());
     $this->assertTrue($a->getRetryJobs()->get(0)->isRetryJob());
 }