コード例 #1
0
 /**
  * Execute the job.
  *
  * @return void
  */
 public function handle(FingerprinterContract $fingerprinter)
 {
     if ($this->attempts() > 1) {
         return;
     }
     // Mark this as processing
     $this->task->status_code = ProjectTask::STATUS_PROCESSING;
     $this->task->save();
     // TODO: switch on task type
     $results = $fingerprinter->cleanProject($this->task->project);
     $this->task->result_data = json_encode($results['results']);
     $this->task->result_output = json_encode($results['output']);
     $this->task->status_code = ProjectTask::STATUS_FINISHED;
     $this->task->save();
     return;
 }