Skip to content

Commit 53ce5e5

Browse files
committed
set lock expiry
1 parent f168c9d commit 53ce5e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Jobs/AbstractIndexJob.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ public function uniqueId(): string
2929

3030
public function middleware(): array
3131
{
32-
return [new WithoutOverlapping($this->uniqueId())];
32+
return [
33+
(new WithoutOverlapping($this->uniqueId()))
34+
->expireAfter(now()->addMinutes(30)),
35+
];
3336
}
3437
}

0 commit comments

Comments
 (0)