From 62850b64ceb9ab3e5d04c0b94a8a7106d47cb20b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Sun, 24 Nov 2024 07:53:07 +0200 Subject: [PATCH] fix: job release --- app/Jobs/SchedulableJob.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Jobs/SchedulableJob.php b/app/Jobs/SchedulableJob.php index ec2535f..c4c1add 100644 --- a/app/Jobs/SchedulableJob.php +++ b/app/Jobs/SchedulableJob.php @@ -29,6 +29,13 @@ public function __construct(ScheduledJob $scheduledJob) $this->scheduledJob = $scheduledJob; } + /** + * The number of seconds after which the job's unique lock will be released. + * + * @var int + */ + public $uniqueFor = 45; + abstract public function execute(): void; abstract public static function name(): string;