Skip to content

Commit d3b3c2f

Browse files
committed
fix: Add missing middleware for server check job
1 parent 0b00091 commit d3b3c2f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

app/Jobs/ServerCheckJob.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Illuminate\Contracts\Queue\ShouldQueue;
1717
use Illuminate\Foundation\Bus\Dispatchable;
1818
use Illuminate\Queue\InteractsWithQueue;
19+
use Illuminate\Queue\Middleware\WithoutOverlapping;
1920
use Illuminate\Queue\SerializesModels;
2021
use Illuminate\Support\Arr;
2122

@@ -42,15 +43,15 @@ public function backoff(): int
4243

4344
public function __construct(public Server $server) {}
4445

45-
// public function middleware(): array
46-
// {
47-
// return [(new WithoutOverlapping($this->server->uuid))];
48-
// }
46+
public function middleware(): array
47+
{
48+
return [(new WithoutOverlapping($this->server->uuid))];
49+
}
4950

50-
// public function uniqueId(): int
51-
// {
52-
// return $this->server->uuid;
53-
// }
51+
public function uniqueId(): int
52+
{
53+
return $this->server->uuid;
54+
}
5455

5556
public function handle()
5657
{

0 commit comments

Comments
 (0)