From 26ac9a0063dba3eeb1a20d4fe8648e20386bf364 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Dec 2019 18:11:51 +0000 Subject: [PATCH] "CheckServer" is now "UpdateGServer" --- src/Protocol/PortableContact.php | 6 +++--- src/Worker/{CheckServer.php => UpdateGServer.php} | 6 +++--- src/Worker/UpdateServers.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/Worker/{CheckServer.php => UpdateGServer.php} (77%) diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index d720910c5f..49da85e615 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -270,7 +270,7 @@ class PortableContact if (!DBA::isResult($r)) { Logger::log("Call server check for server ".$server_url, Logger::DEBUG); - Worker::add(PRIORITY_LOW, 'CheckServer', $server_url); + Worker::add(PRIORITY_LOW, 'UpdateGServer', $server_url); } } } @@ -295,7 +295,7 @@ class PortableContact if (!empty($servers['pods'])) { foreach ($servers['pods'] as $server) { - Worker::add(PRIORITY_LOW, 'CheckServer', 'https://' . $server['host']); + Worker::add(PRIORITY_LOW, 'UpdateGServer', 'https://' . $server['host']); } } } @@ -314,7 +314,7 @@ class PortableContact foreach ($servers['instances'] as $server) { $url = (is_null($server['https_score']) ? 'http' : 'https') . '://' . $server['name']; - Worker::add(PRIORITY_LOW, 'CheckServer', $url); + Worker::add(PRIORITY_LOW, 'UpdateGServer', $url); } } } diff --git a/src/Worker/CheckServer.php b/src/Worker/UpdateGServer.php similarity index 77% rename from src/Worker/CheckServer.php rename to src/Worker/UpdateGServer.php index ad78d7d255..2e017422fe 100644 --- a/src/Worker/CheckServer.php +++ b/src/Worker/UpdateGServer.php @@ -1,6 +1,6 @@ $server_url, 'result' => $ret]); + Logger::info('Updated gserver', ['url' => $server_url, 'result' => $ret]); } } diff --git a/src/Worker/UpdateServers.php b/src/Worker/UpdateServers.php index d3ce3fca77..d1cc04209a 100644 --- a/src/Worker/UpdateServers.php +++ b/src/Worker/UpdateServers.php @@ -30,7 +30,7 @@ class UpdateServers } Logger::info('Update server status', ['server' => $gserver['url']]); - Worker::add(PRIORITY_LOW, 'CheckServer', $gserver['url']); + Worker::add(PRIORITY_LOW, 'UpdateGServer', $gserver['url']); if (++$updated > 250) { return; -- 2.39.5