fix: service status check

fix: containerStatusJob
fix: service form
This commit is contained in:
Andras Bacsai
2023-10-12 09:12:46 +02:00
parent 7aa991fd7c
commit 9318cac189
9 changed files with 83 additions and 71 deletions

View File

@@ -29,7 +29,7 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted
public function __construct(public Server $server)
{
$this->handle();
}
public function middleware(): array
@@ -44,7 +44,7 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted
public function handle()
{
try {
ray("checking server status for {$this->server->name}");
ray("checking server status for {$this->server->id}");
// ray()->clearAll();
$serverUptimeCheckNumber = $this->server->unreachable_count;
$serverUptimeCheckNumberMax = 3;