unique job
This commit is contained in:
parent
1477e9c35c
commit
063945d9c5
@ -12,17 +12,17 @@ use Illuminate\Queue\InteractsWithQueue;
|
|||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
use Log;
|
use Log;
|
||||||
|
|
||||||
class InstanceAutoUpdateJob implements ShouldQueue
|
class InstanceAutoUpdateJob implements ShouldQueue, ShouldBeUnique
|
||||||
{
|
{
|
||||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
public $tries = 1;
|
|
||||||
public $timeout = 120;
|
public $timeout = 120;
|
||||||
|
|
||||||
public Server $server;
|
public Server $server;
|
||||||
public string $latest_version;
|
public string $latest_version;
|
||||||
public string $current_version;
|
public string $current_version;
|
||||||
|
|
||||||
|
|
||||||
public function __construct(private bool $force = false)
|
public function __construct(private bool $force = false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user