Put TIC processing on it's own queue

This commit is contained in:
Deon George 2023-08-15 12:25:38 +10:00
parent 462004c9c9
commit a5784de9a8

View File

@ -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);
} }
/** /**