This commit is contained in:
2023-11-26 18:56:40 +08:00
parent be14f5fdb1
commit 64431e7a73
144 changed files with 497072 additions and 3730 deletions

View File

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