Skip to content
Snippets Groups Projects
Commit 35310b0e authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Commenting out socketio emit before calling celery task

parent 824bf3c7
No related branches found
No related tags found
1 merge request!40Add rabbitmq connection
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment