From 4f588ced96b99af48f88de57f739917db3464572 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <andras.bacsai@gmail.com> Date: Wed, 18 Oct 2023 14:43:48 +0200 Subject: [PATCH] call handle not matter what --- app/Jobs/ContainerStatusJob.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Jobs/ContainerStatusJob.php b/app/Jobs/ContainerStatusJob.php index 1c8cf1919..9b5f9dc48 100644 --- a/app/Jobs/ContainerStatusJob.php +++ b/app/Jobs/ContainerStatusJob.php @@ -19,6 +19,7 @@ use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\Middleware\WithoutOverlapping; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Arr; +use Illuminate\Support\Facades\Log; use Illuminate\Support\Str; class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted @@ -40,9 +41,7 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted public function __construct(public Server $server) { - if (isDev()) { - $this->handle(); - } + $this->handle(); } public function handle() @@ -76,6 +75,7 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted $this->server->update([ 'unreachable_count' => 0, ]); + Log::info("Server {$this->server->id} is reachable."); } else { $serverUptimeCheckNumber++; $this->server->settings()->update([ @@ -129,7 +129,6 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted } catch (\Throwable $e) { ray($e); } - } else { $this->server->proxy->status = data_get($foundProxyContainer, 'State.Status'); $this->server->save();