Skip to content

Commit

Permalink
fix: job release
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Nov 24, 2024
1 parent 67f651b commit 62850b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Jobs/SchedulableJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 62850b6

Please sign in to comment.