Example #1
0
 /**
  * Return the status of the current job.
  *
  * @return int The status of the job as one of the Job_Status constants.
  */
 public function getStatus()
 {
     $status = new Status($this->payload['id']);
     return $status->get();
 }
Example #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();
 }