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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,7 +31,7 @@ class DockerCleanupJob implements ShouldBeEncrypted, ShouldQueue
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) {}