connection = 'studio-patch'; $this->queue = 'studio-patch'; } public function handle() { $job = StudioMetaBatchJob::where('status', 'pending')->first(); if ($job) { $job->status = 'processing'; $job->update(); $videos = StudioPlusVideo::whereBetween('id', [$job->sid, $job->eid])->get(); foreach ($videos as $video) { $video->is_old = $video->old; $video->in_youtube = $video->youtube; $video->in_ott = $video->ott; $video->update(); } $job->status = 'processed'; $job->update(); } } }