From d831a7961406114ed3633bf3b00c4d54bc61de90 Mon Sep 17 00:00:00 2001 From: Mokaddem Date: Fri, 25 Nov 2016 16:00:46 +0100 Subject: [PATCH] Do not try to restart not running queue if autokill is not set --- bin/ModuleInformation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ModuleInformation.py b/bin/ModuleInformation.py index ed02eafc..5eb81e84 100755 --- a/bin/ModuleInformation.py +++ b/bin/ModuleInformation.py @@ -247,7 +247,7 @@ if __name__ == "__main__": printarray3.append([curr_queue, "No data"]) else: #If no info since long time, try to kill - if int(time.time()) - no_info_modules[curr_queue] > threshold_stucked_module: + if args.autokill == 1 and int(time.time()) - no_info_modules[curr_queue] > threshold_stucked_module: kill_module(curr_queue, None) no_info_modules[curr_queue] = int(time.time()) printarray3.append([curr_queue, "Stuck or idle, restarting in " + str(threshold_stucked_module - (int(time.time()) - no_info_modules[curr_queue])) + "s"])