From ab0d97c1f9f79d19fccc07d66a183426bea4b35f Mon Sep 17 00:00:00 2001 From: atlurie <atlurie@uab.edu> Date: Mon, 11 Apr 2022 22:29:30 -0500 Subject: [PATCH] Use fucntions from rc_rmq --- account_manager.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/account_manager.py b/account_manager.py index 1c23ab3..00973a6 100755 --- a/account_manager.py +++ b/account_manager.py @@ -69,7 +69,7 @@ else: def timeout_handler(signum, frame): print("Process timeout, there's some issue with agents") - rc_util.rc_rmq.stop_consume() + rc_rmq.stop_consume() def callback(channel, method, properties, body): @@ -85,9 +85,8 @@ def callback(channel, method, properties, body): for err in errmsg: print(err) - rc_util.rc_rmq.stop_consume() - rc_util.rc_rmq.disconnect() - + rc_rmq.stop_consume() + rc_rmq.disconnect() print(f"{action} action for {args.username} requested.") -- GitLab