From aeb4a24219d204ae5c7c06891c49eac672ffd7b9 Mon Sep 17 00:00:00 2001 From: "Bo-Chun Louis Chen(VM)" <louistw@uab.edu> Date: Sat, 22 Feb 2020 06:48:02 +0000 Subject: [PATCH] Update message field name from confirm exchange --- rc_util.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rc_util.py b/rc_util.py index 05ff5c2..df27503 100644 --- a/rc_util.py +++ b/rc_util.py @@ -17,11 +17,9 @@ def add_account(username, full='', reason=''): def worker(ch, method, properties, body): msg = json.loads(body) - task = msg['username'] + task = msg['task'] print("get msg: {}".format(task)) - - tasks[task] = True - ch.basic_ack(delivery_tag=method.delivery_tag) + tasks[task] = msg['success'] # Check if all tasks are done done = True -- GitLab