Add (initial): futurewalker code
This commit is contained in:
35
app/Jobs/IdentifyCrawlSourcesJob.php
Normal file
35
app/Jobs/IdentifyCrawlSourcesJob.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user