From e9fcbe985b7fce925cf05d4ac13e2ecc95889a4c Mon Sep 17 00:00:00 2001 From: Krish <krish94@uab.edu> Date: Thu, 6 May 2021 09:03:26 -0500 Subject: [PATCH] changed rc_util function calls to match rabbitmq agent modification --- tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index 7f5402d..6888829 100644 --- a/tasks.py +++ b/tasks.py @@ -51,11 +51,12 @@ def celery_create_account(json, session): email= json['email'] fullname= json['fullname'] reason= json['reason'] + queuename= rc_util.encode_name(username) print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue') send_msg('creating account', room) print(username) - rc_util.add_account(username, email, fullname, reason) + rc_util.add_account(username, queuename, email, fullname, reason) print('sent account info') print('Waiting for completion...') - rc_util.consume(username, routing_key=f'complete.{username}', callback=gen_f(room)) + rc_util.consume(queuename, routing_key=f'complete.{queuename}', callback=gen_f(room)) -- GitLab