refactor(jobs): update middleware to prevent job release after expiration for CleanupInstanceStuffsJob, RestartProxyJob, and ServerCheckJob

This commit is contained in:
Andras Bacsai
2025-04-30 23:37:29 +02:00
parent 5159b54bac
commit f9faf3e40f
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ class CleanupInstanceStuffsJob implements ShouldBeEncrypted, ShouldBeUnique, Sho
public function middleware(): array public function middleware(): array
{ {
return [(new WithoutOverlapping('cleanup-instance-stuffs'))->expireAfter(60)]; return [(new WithoutOverlapping('cleanup-instance-stuffs'))->expireAfter(60)->dontRelease()];
} }
public function handle(): void public function handle(): void

View File

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

View File

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