From 6659153804252835658b58764bb325ef8430e930 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 6 Oct 2023 15:32:46 +0200 Subject: [PATCH] version++ fix: unreachable servers --- app/Jobs/ContainerStatusJob.php | 5 +++-- config/sentry.php | 2 +- config/version.php | 2 +- versions.json | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/Jobs/ContainerStatusJob.php b/app/Jobs/ContainerStatusJob.php index f2abae3ca..7f28954a0 100644 --- a/app/Jobs/ContainerStatusJob.php +++ b/app/Jobs/ContainerStatusJob.php @@ -56,8 +56,9 @@ public function handle(): void $serverUptimeCheckNumberMax = 3; while (true) { if ($serverUptimeCheckNumber >= $serverUptimeCheckNumberMax) { - $this->server->settings()->update(['is_reachable' => false]); - $this->server->team->notify(new Unreachable($this->server)); + send_internal_notification('Server unreachable: ' . $this->server->name); + // $this->server->settings()->update(['is_reachable' => false]); + // $this->server->team->notify(new Unreachable($this->server)); return; } $result = $this->checkServerConnection(); diff --git a/config/sentry.php b/config/sentry.php index 337e904e1..ab05d1fa5 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.69', + 'release' => '4.0.0-beta.70', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index 0dafd3ed9..c58fd74b3 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@