From 086138fbd9989f64e53e121a45a45ed421446a5c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 23 May 2024 11:31:52 +0200 Subject: [PATCH] fix: disable containerStopped job for now --- app/Actions/Docker/GetContainersStatus.php | 16 ++++++++-------- app/Jobs/CheckLogDrainContainerJob.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Actions/Docker/GetContainersStatus.php b/app/Actions/Docker/GetContainersStatus.php index 2d970560b..a8a9185ba 100644 --- a/app/Actions/Docker/GetContainersStatus.php +++ b/app/Actions/Docker/GetContainersStatus.php @@ -243,7 +243,7 @@ private function sentinel() } else { $url = null; } - $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); + // $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); $exitedService->update(['status' => 'exited']); } @@ -270,7 +270,7 @@ private function sentinel() $url = null; } - $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); + // $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); } $notRunningApplicationPreviews = $previews->pluck('id')->diff($foundApplicationPreviews); foreach ($notRunningApplicationPreviews as $previewId) { @@ -295,7 +295,7 @@ private function sentinel() $url = null; } - $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); + // $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); } $notRunningDatabases = $databases->pluck('id')->diff($foundDatabases); foreach ($notRunningDatabases as $database) { @@ -319,7 +319,7 @@ private function sentinel() } else { $url = null; } - $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); + // $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); } // Check if proxy is running @@ -573,7 +573,7 @@ private function old_way() } else { $url = null; } - $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); + // $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); $exitedService->update(['status' => 'exited']); } @@ -600,7 +600,7 @@ private function old_way() $url = null; } - $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); + // $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); } $notRunningApplicationPreviews = $previews->pluck('id')->diff($foundApplicationPreviews); foreach ($notRunningApplicationPreviews as $previewId) { @@ -625,7 +625,7 @@ private function old_way() $url = null; } - $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); + // $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); } $notRunningDatabases = $databases->pluck('id')->diff($foundDatabases); foreach ($notRunningDatabases as $database) { @@ -649,7 +649,7 @@ private function old_way() } else { $url = null; } - $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); + // $this->server->team?->notify(new ContainerStopped($containerName, $this->server, $url)); } // Check if proxy is running diff --git a/app/Jobs/CheckLogDrainContainerJob.php b/app/Jobs/CheckLogDrainContainerJob.php index 4da49b988..8776b67c3 100644 --- a/app/Jobs/CheckLogDrainContainerJob.php +++ b/app/Jobs/CheckLogDrainContainerJob.php @@ -70,7 +70,7 @@ public function handle(): void } if (!$this->server->log_drain_notification_sent) { ray('Log drain container still unhealthy. Sending notification...'); - $this->server->team?->notify(new ContainerStopped('Coolify Log Drainer', $this->server, null)); + // $this->server->team?->notify(new ContainerStopped('Coolify Log Drainer', $this->server, null)); $this->server->update(['log_drain_notification_sent' => true]); } } else {