From 1b342d51591f833298657a24a0aa3aaba4bf99a8 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 15 Sep 2021 14:15:23 +0200 Subject: [PATCH] Use gunicorn as the default webserver --- app/corpora/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/corpora/events.py b/app/corpora/events.py index 749de7b4..4c8bd606 100644 --- a/app/corpora/events.py +++ b/app/corpora/events.py @@ -59,7 +59,7 @@ def corpus_analysis_session_handler(app, corpus_id, user_id, session_id): retry_counter -= 1 if retry_counter == 0: response = {'code': 408, 'desc': None, 'msg': 'Request Timeout'} # noqa - socketio.emit('corpus_analysis_init', response, room=request.sid) # noqa + socketio.emit('corpus_analysis_init', response, room=session_id) # noqa corpus.status = 'stop analysis' db.session.commit() return