From 063945d9c571df81c3ea798cc012a611a2bdba5e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 12 Jun 2023 18:06:56 +0200 Subject: [PATCH] unique job --- app/Jobs/InstanceAutoUpdateJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/InstanceAutoUpdateJob.php b/app/Jobs/InstanceAutoUpdateJob.php index 0d53c3760..9082f8254 100644 --- a/app/Jobs/InstanceAutoUpdateJob.php +++ b/app/Jobs/InstanceAutoUpdateJob.php @@ -12,17 +12,17 @@ use Illuminate\Queue\InteractsWithQueue; 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) { }