refactor(jobs): update WithoutOverlapping middleware to use expireAfter for better queue management

This commit is contained in:
Andras Bacsai
2025-04-18 09:52:32 +02:00
parent 1b60fd3eb2
commit b78f2cccff
4 changed files with 6 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue
public function middleware(): array
{
return [(new WithoutOverlapping($this->server->uuid))->dontRelease()];
return [(new WithoutOverlapping($this->server->uuid))->expireAfter(60)];
}
public function __construct(public Server $server) {}