Put TIC processing on it's own queue
This commit is contained in:
parent
462004c9c9
commit
a5784de9a8
@ -22,6 +22,8 @@ class TicProcess implements ShouldQueue
|
|||||||
|
|
||||||
private ?Domain $do;
|
private ?Domain $do;
|
||||||
|
|
||||||
|
public const QUEUE = 'tic';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new job instance.
|
* Create a new job instance.
|
||||||
*
|
*
|
||||||
@ -31,6 +33,8 @@ class TicProcess implements ShouldQueue
|
|||||||
public function __construct(private string $file,private ?string $domain=NULL)
|
public function __construct(private string $file,private ?string $domain=NULL)
|
||||||
{
|
{
|
||||||
$this->do = $domain ? Domain::where('name',$domain)->singleOrFail() : NULL;
|
$this->do = $domain ? Domain::where('name',$domain)->singleOrFail() : NULL;
|
||||||
|
|
||||||
|
$this->onQueue(self::QUEUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user