Exemplo n.º 1
0
 /**
  * Run the next job for the daemon worker.
  *
  * @param  string  $connectionName
  * @param  string  $queue
  * @param  int  $delay
  * @param  int  $sleep
  * @param  int  $maxTries
  * @return void
  */
 protected function runNextJobForDaemon($connectionName, $queue, $delay, $sleep, $maxTries)
 {
     try {
         $this->pop($connectionName, $queue, $delay, $sleep, $maxTries);
     } catch (\Exception $e) {
         if ($this->exceptions) {
             $this->exceptions->handleException($e);
         }
     }
 }