/**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     Queue::failing(function ($connection, $job, $data) {
         $updaterJob = UpdaterJob::where('queue_job_id', $data['id'])->first();
         $updaterJob->failed = true;
         $updaterJob->save();
     });
 }
 public function getQueueJobStatus($queueJobId)
 {
     $job = UpdaterJob::where('queue_job_id', $queueJobId)->first();
     if ($job) {
         return $this->getStatus($job->id);
     } else {
         return Response::json([]);
     }
 }