public function run(PayloadInterface $payload)
 {
     parent::run($payload);
     if ($this->getRunsCount() < 2) {
         // 2 retries triggered by exception
         throw new RetryException();
     }
     return null;
 }
 public function run(PayloadInterface $payload)
 {
     parent::run($payload);
     if ($this->getRunsCount() <= $this->retries) {
         // 2 retries triggered by method
         $this->retry();
     }
     return null;
 }
Пример #3
0
 public function run(PayloadInterface $payload)
 {
     $this->skip();
     return parent::run($payload);
 }