Example #1
0
 /**
  * Update the status of the current job.
  *
  * @param int $status Status constant from Resque_Job_Status indicating the current status of a job.
  */
 public function updateStatus($status)
 {
     if (empty($this->payload['id'])) {
         return;
     }
     $statusInstance = new Status($this->payload['id']);
     $statusInstance->update($status);
 }