From 365f957b8a728a5b1c19eed4753d93228364c847 Mon Sep 17 00:00:00 2001 From: ayntk-ai <122374094+ayntk-ai@users.noreply.github.com> Date: Mon, 12 Aug 2024 12:43:06 +0200 Subject: [PATCH] remove duplicated sentinel pull job --- app/Jobs/ServerCheckJob.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/Jobs/ServerCheckJob.php b/app/Jobs/ServerCheckJob.php index 1db15cfd4..703b199c5 100644 --- a/app/Jobs/ServerCheckJob.php +++ b/app/Jobs/ServerCheckJob.php @@ -79,7 +79,6 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue } GetContainersStatus::run($this->server, $this->containers, $containerReplicates); $this->checkLogDrainContainer(); - $this->checkSentinel(); } } catch (\Throwable $e) { @@ -90,21 +89,6 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueue } - private function checkSentinel() - { - if ($this->server->isSentinelEnabled()) { - $sentinelContainerFound = $this->containers->filter(function ($value, $key) { - return data_get($value, 'Name') === '/coolify-sentinel'; - })->first(); - if ($sentinelContainerFound) { - $status = data_get($sentinelContainerFound, 'State.Status'); - if ($status !== 'running') { - PullSentinelImageJob::dispatch($this); - } - } - } - } - private function serverStatus() { ['uptime' => $uptime] = $this->server->validateConnection();