Skip to content
Snippets Groups Projects
Commit 450c8392 authored by Cloud User's avatar Cloud User
Browse files

Sending a message to the client webapp to start layover before starting celery task

parent b7b2a44c
No related branches found
No related tags found
No related merge requests found
......@@ -54,9 +54,9 @@ def user_connected(json, methods=['GET', 'POST']):
@socketio.on('request account')
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)
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