Change container name for analysis

This commit is contained in:
Patrick Jentsch 2019-11-19 11:42:23 +01:00
parent 88b0907fc5
commit e3db29e476

View File

@ -38,8 +38,7 @@ def init_corpus_analysis(corpus_id):
db.session.refresh(corpus) db.session.refresh(corpus)
socketio.sleep(3) socketio.sleep(3)
analysis_clients[request.sid] = CQiWrapper( analysis_clients[request.sid] = CQiWrapper(
host='{}_analysis_container{}'.format(corpus.creator.username, host='analyse_corpus_{}'.format(corpus.id))
corpus.id))
analysis_clients[request.sid].connect() analysis_clients[request.sid].connect()
socketio.emit('init_corpus_analysis', 'Ready', room=request.sid) socketio.emit('init_corpus_analysis', 'Ready', room=request.sid)
socketio.start_background_task(observe_corpus_analysis_connection, socketio.start_background_task(observe_corpus_analysis_connection,