From 8c9bbc0bb3f7df05729537f9367560aeab4ed6a3 Mon Sep 17 00:00:00 2001
From: Bo-Chun Louis Chen <louistw@uab.edu>
Date: Wed, 19 Aug 2020 14:24:40 -0500
Subject: [PATCH] Update celery task

Change from flask_producer to create_account script
---
 tasks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tasks.py b/tasks.py
index 7deec3a..6e6aad5 100644
--- a/tasks.py
+++ b/tasks.py
@@ -24,6 +24,6 @@ def celery_create_account(username, fullname, reason, session):
     print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tUser ' + username + ' added to queue')
     send_msg('creating account', room)
     print(username)
-    subprocess.call(["/opt/rabbitmq_agents/flask_producer.py", "ohpc_account_create", username])
+    subprocess.call(["/opt/rabbitmq_agents/create_account.py", username, '', fullname, reason])
     print(time.strftime("%m-%d-%Y_%H:%M:%S") + '\tAccount successfully created for ' + username)
     send_msg('account ready', room)
-- 
GitLab