Use gunicorn as the default webserver

This commit is contained in:
Patrick Jentsch 2021-09-15 14:15:23 +02:00
parent 34c4f38b52
commit 1b342d5159

View File

@ -59,7 +59,7 @@ def corpus_analysis_session_handler(app, corpus_id, user_id, session_id):
retry_counter -= 1 retry_counter -= 1
if retry_counter == 0: if retry_counter == 0:
response = {'code': 408, 'desc': None, 'msg': 'Request Timeout'} # noqa 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' corpus.status = 'stop analysis'
db.session.commit() db.session.commit()
return return