Rename analysis container

This commit is contained in:
Patrick Jentsch 2019-12-03 11:46:56 +01:00
parent a4ffee5b2e
commit ccfd449260

View File

@ -79,7 +79,7 @@ def corpus_analysis_session_handler(app, corpus_id, session_id):
while corpus.status != 'analysing': while corpus.status != 'analysing':
db.session.refresh(corpus) db.session.refresh(corpus)
socketio.sleep(3) socketio.sleep(3)
client = CQiWrapper(host='analyse_corpus_{}'.format(corpus_id)) client = CQiWrapper(host='corpus_{}_analysis'.format(corpus_id))
client.connect() client.connect()
corpus_analysis_clients[session_id] = client corpus_analysis_clients[session_id] = client
if corpus_id not in corpus_analysis_sessions: if corpus_id not in corpus_analysis_sessions: