From f9173576154d5403c340c4d48dd1ff288040ab9a Mon Sep 17 00:00:00 2001 From: Terrtia Date: Wed, 20 May 2020 17:16:02 +0200 Subject: [PATCH] fix: [Credential] fix timeout message --- bin/lib/{statistics.py => Statistics.py} | 0 bin/lib/regex_helper.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename bin/lib/{statistics.py => Statistics.py} (100%) diff --git a/bin/lib/statistics.py b/bin/lib/Statistics.py similarity index 100% rename from bin/lib/statistics.py rename to bin/lib/Statistics.py diff --git a/bin/lib/regex_helper.py b/bin/lib/regex_helper.py index 04555524..4c0643c1 100755 --- a/bin/lib/regex_helper.py +++ b/bin/lib/regex_helper.py @@ -17,7 +17,7 @@ from pubsublogger import publisher sys.path.append(os.path.join(os.environ['AIL_BIN'], 'lib')) import ConfigLoader -import statistics +import Statistics ## LOAD CONFIG ## config_loader = ConfigLoader.ConfigLoader() @@ -56,7 +56,7 @@ def regex_findall(module_name, redis_key, regex, item_content, max_time=30, r_se proc.join(max_time) if proc.is_alive(): proc.terminate() - statistics.incr_module_timeout_statistic(module_name) + Statistics.incr_module_timeout_statistic(module_name) err_mess = "{}: processing timeout: {}".format(module_name, item_id) print(err_mess) publisher.info(err_mess)