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