/**
  * 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;
 }
Example #2
0
 /**
  * Check that we are connected to a node, and if not connect
  *
  * @throws Disque\Connection\ConnectionException
  */
 private function checkConnected()
 {
     if (!$this->client->isConnected()) {
         $this->client->connect();
     }
 }
 /**
  * @param $name
  * @return \Disque\Queue\Queue
  */
 public function queue($name)
 {
     return $this->disque->queue($name);
 }