Files
futurewalker/app/Jobs/ParseRssPostMetadataJob.php
2023-11-21 19:18:11 +08:00

36 lines
763 B
PHP

<?php
namespace App\Jobs;
use App\Jobs\Tasks\ParseRssPostMetadataTask;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class ParseRssPostMetadataJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $rss_post_id;
public $timeout = 240;
/**
* Create a new job instance.
*/
public function __construct(int $rss_post_id)
{
$this->rss_post_id = $rss_post_id;
}
/**
* Execute the job.
*/
public function handle(): void
{
ParseRssPostMetadataTask::handle($this->rss_post_id);
}
}