예제 #1
0
파일: Job.php 프로젝트: RTLer/php-resque-ex
 /**
  * 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);
 }