mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update InstanceCrawlPipeline, remove unused variable
This commit is contained in:
parent
588384543b
commit
e73cf531cb
1 changed files with 19 additions and 19 deletions
|
@ -15,29 +15,29 @@ use App\Services\NodeinfoService;
|
||||||
|
|
||||||
class InstanceCrawlPipeline implements ShouldQueue
|
class InstanceCrawlPipeline implements ShouldQueue
|
||||||
{
|
{
|
||||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new job instance.
|
* Create a new job instance.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the job.
|
* Execute the job.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
Instance::whereNull('last_crawled_at')->whereNull('software')->chunk(50, function($instances) use($headers) {
|
Instance::whereNull('last_crawled_at')->whereNull('software')->chunk(50, function($instances) {
|
||||||
foreach($instances as $instance) {
|
foreach($instances as $instance) {
|
||||||
FetchNodeinfoPipeline::dispatch($instance)->onQueue('low');
|
FetchNodeinfoPipeline::dispatch($instance)->onQueue('low');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue