fix(jobs): update middleware to use expireAfter for WithoutOverlapping in multiple job classes

This commit is contained in:
Andras Bacsai committed 2025-07-01 10:50:27 +02:00
1 parent 2a2a99d256
commit 24688b2ad8
6 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ class DockerCleanupJob implements ShouldBeEncrypted, ShouldQueue
public function middleware(): array
{
return [(new WithoutOverlapping('docker-cleanup-'.$this->server->uuid))->dontRelease()];
return [(new WithoutOverlapping('docker-cleanup-'.$this->server->uuid))->expireAfter(600)->dontRelease()];
}
public function __construct(public Server $server, public bool $manualCleanup = false) {}