39 lines
806 B
PHP
39 lines
806 B
PHP
<?php
|
|
|
|
namespace App\Jobs\Mass\MassUpdate\Group2;
|
|
|
|
use App\Tasks\Mass\MassUpdate\Group2\MassUpdate4Task;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class MassUpdate4Job implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
/**
|
|
* The number of seconds the job can run before timing out.
|
|
*
|
|
* @var int
|
|
*/
|
|
public int $timeout = 3600; //20min
|
|
|
|
/**
|
|
* Create a new job instance.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Execute the job.
|
|
*/
|
|
public function handle(): void
|
|
{
|
|
(new MassUpdate4Task())->handle();
|
|
}
|
|
}
|