diff --git a/app/Jobs/InstancePipeline/InstanceCrawlPipeline.php b/app/Jobs/InstancePipeline/InstanceCrawlPipeline.php index f45355f9..cbba078d 100644 --- a/app/Jobs/InstancePipeline/InstanceCrawlPipeline.php +++ b/app/Jobs/InstancePipeline/InstanceCrawlPipeline.php @@ -15,29 +15,29 @@ use App\Services\NodeinfoService; class InstanceCrawlPipeline implements ShouldQueue { - use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; + use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; - /** - * Create a new job instance. - * - * @return void - */ - public function __construct() - { - // - } + /** + * Create a new job instance. + * + * @return void + */ + public function __construct() + { + // + } - /** - * Execute the job. - * - * @return void - */ - public function handle() - { - Instance::whereNull('last_crawled_at')->whereNull('software')->chunk(50, function($instances) use($headers) { + /** + * Execute the job. + * + * @return void + */ + public function handle() + { + Instance::whereNull('last_crawled_at')->whereNull('software')->chunk(50, function($instances) { foreach($instances as $instance) { FetchNodeinfoPipeline::dispatch($instance)->onQueue('low'); } }); - } + } }