Commit 8c9bbc0b authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Update celery task

Change from flask_producer to create_account script
parent 82cdcc7d
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment