This prevents queues from getting stuck when using the WithoutOverlapping middleware
This commit is contained in:
Nurdism
2025-04-16 20:45:58 -04:00
committed by GitHub
parent 6834c9e4dd
commit 7d698fafd0

View File

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