Add (initial): futurewalker code

This commit is contained in:
2023-11-20 00:15:18 +08:00
parent f8602cb456
commit 9ce3e5c82a
166 changed files with 15941 additions and 1072 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Jobs;
use App\Jobs\Tasks\IdentifyCrawlSourcesTask;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class IdentifyCrawlSourcesJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $serp_url_id;
public $timeout = 120;
/**
* Create a new job instance.
*/
public function __construct(int $serp_url_id)
{
$this->serp_url_id = $serp_url_id;
}
/**
* Execute the job.
*/
public function handle(): void
{
IdentifyCrawlSourcesTask::handle($this->serp_url_id);
}
}