Exemplo n.º 1
0
 /**
  * Return the status of the current job.
  *
  * @return int The status of the job as one of the Resque_Job_Status constants.
  */
 public function getStatus()
 {
     $status = new Resque_Job_Status($this->payload['id']);
     return $status->get();
 }
Exemplo n.º 2
0
 /**
  * Check job status
  *
  * @param string $token
  *            Job token ID
  *
  * @return string Job Status
  */
 public function status($token)
 {
     $status = new Resque_Job_Status($token);
     return $status->get();
 }