Files
futurewalker/app/Jobs/WriteWithAIJob.php

36 lines
732 B
PHP

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