Ejemplo n.º 1
0
 /**
  * Mark a job as failed
  *
  * @access public
  * @param  Job $job
  * @return $this
  */
 public function failed(Job $job)
 {
     $this->disque->queue($this->queueName)->failed(new DisqueJob($job->getBody(), $job->getId()));
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * Mark a job as failed
  *
  * @access public
  * @param  Job $job
  * @return $this
  */
 public function failed(Job $job)
 {
     $this->sqsClient->changeMessageVisibility(array('QueueUrl' => $this->sqsUrl, 'ReceiptHandle' => $job->getId(), 'VisibilityTimeout' => 0));
     return $this;
 }
 /**
  * Mark a job as failed
  *
  * @access public
  * @param  Job $job
  * @return $this
  */
 public function failed(Job $job)
 {
     $beanstalkJob = new BeanstalkJob($job->getId(), $job->serialize());
     $this->beanstalk->bury($beanstalkJob);
     return $this;
 }
Ejemplo n.º 4
0
 /**
  * Mark a job as failed
  *
  * @access public
  * @param  Job $job
  * @return $this
  */
 public function failed(Job $job)
 {
     $this->channel->basic_nack($job->getId());
     return $this;
 }