示例#1
0
 /**
  * Release a reserved job back onto the queue.
  *
  * @param string $queue
  * @param string $payload
  * @param int $delay
  * @param int $attempts
  * @return void 
  * @static 
  */
 public static function release($queue, $payload, $delay, $attempts)
 {
     \Illuminate\Queue\RedisQueue::release($queue, $payload, $delay, $attempts);
 }
 /**
  * Release the job back into the queue.
  *
  * @param  int   $delay
  * @return void
  */
 public function release($delay = 0)
 {
     parent::release($delay);
     $this->delete();
     $this->redis->release($this->queue, $this->job, $delay, $this->attempts() + 1);
 }