From 0a2d0da36f90478702115c95512d4151a4362878 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 24 Aug 2023 21:24:44 +0200 Subject: [PATCH] fix proxy check jo --- app/Jobs/ProxyCheckJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/ProxyCheckJob.php b/app/Jobs/ProxyCheckJob.php index ea8fe967d..defb8fdd7 100755 --- a/app/Jobs/ProxyCheckJob.php +++ b/app/Jobs/ProxyCheckJob.php @@ -22,7 +22,7 @@ class ProxyCheckJob implements ShouldQueue { try { $container_name = 'coolify-proxy'; - $servers = Server::isUsable()->whereNotNull('proxy')->get(); + $servers = Server::all()->whereRelation('settings', 'is_reachable', true)->whereRelation('settings', 'is_usable', true)->whereNotNull('proxy')->get(); foreach ($servers as $server) { $status = getContainerStatus(server: $server, container_id: $container_name); if ($status === 'running') {