From 35310b0eec95033e44d1ed947af7e856168cf880 Mon Sep 17 00:00:00 2001
From: Ravi Tripathi <ravi89@uab.edu>
Date: Tue, 3 Mar 2020 16:08:02 +0000
Subject: [PATCH] Commenting out socketio emit before calling celery task

---
 run.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/run.py b/run.py
index 0a4251f..be07de4 100644
--- a/run.py
+++ b/run.py
@@ -14,6 +14,7 @@ from app import create_app
 config_name = os.getenv('FLASK_CONFIG')
 app = create_app(config_name)
 app.config['SECRET_KEY'] = 'vnkdjnfjknfl1232#'
+#socketio = SocketIO(app, message_queue='amqp:///socketio')
 socketio = SocketIO(app)
 
 # global username_global
@@ -56,7 +57,7 @@ def request_account(json, methods=['GET', 'POST']):
     print (time.strftime("%m-%d-%Y_%H:%M:%S") + '\tQueue request received: ' + str(json))
     print(json)
     room = str(session['uid'])
-    socketio.emit("creating account", room=room)
+    #socketio.emit("creating account")
     try:
         # create_account(json['username'], json['fullname'], json['reason'])
         tasks.celery_create_account(json['username'], json['fullname'], json['reason'], room, socketio)
-- 
GitLab