From 2a9e3a7aeaa34d73c6602037343c628780cbd001 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Wed, 25 Oct 2023 23:34:34 -0500 Subject: [PATCH] Add logging for checkups, and increase delay between checks --- core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core.py b/core.py index f025b96..4a36bd1 100644 --- a/core.py +++ b/core.py @@ -21,7 +21,7 @@ def is_dead(thr): thr.join(timeout=0) return not thr.is_alive() -def start(): +def start(server): t = Thread(target=launch, args=(server,)) t.daemon = True t.start() @@ -33,7 +33,8 @@ if __name__ == "__main__": threads[server] = start(server) print("[LOG][CORE] Started all instances. Idling...") while 1: - sleep(10) + sleep(60) + print("[LOG][CORE] Running a checkup on all running instances") for server in threads: t = threads[server] if is_dead(t):