From 3bf48cbdec8863577acafde328d35402dc03f3c4 Mon Sep 17 00:00:00 2001 From: Aidaho12 Date: Tue, 7 Aug 2018 11:32:14 +0600 Subject: [PATCH] v2.8 --- app/tools/metrics_master.py | 2 +- app/tools/metrics_worker.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tools/metrics_master.py b/app/tools/metrics_master.py index b046763..6b0351b 100644 --- a/app/tools/metrics_master.py +++ b/app/tools/metrics_master.py @@ -20,7 +20,7 @@ class GracefulKiller: def main(): sql.delete_mentrics() - servers = sql.select_servers_metrics() + servers = sql.select_servers_metrics_for_master() started_workers = get_worker() servers_list = [] diff --git a/app/tools/metrics_worker.py b/app/tools/metrics_worker.py index 585bf23..d025729 100644 --- a/app/tools/metrics_worker.py +++ b/app/tools/metrics_worker.py @@ -43,7 +43,7 @@ def main(serv, port): sql.insert_mentrics(serv, metrics[0], metrics[1], metrics[2], metrics[3]) - time.sleep(30) + time.sleep(10) if killer.kill_now: break