From e3db29e4762c8eb290d6155cacd011c1b1567d83 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Tue, 19 Nov 2019 11:42:23 +0100
Subject: [PATCH] Change container name for analysis
---
app/corpora/events.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/app/corpora/events.py b/app/corpora/events.py
index ff7a6f89..af04b469 100644
--- a/app/corpora/events.py
+++ b/app/corpora/events.py
@@ -38,8 +38,7 @@ def init_corpus_analysis(corpus_id):
db.session.refresh(corpus)
socketio.sleep(3)
analysis_clients[request.sid] = CQiWrapper(
- host='{}_analysis_container{}'.format(corpus.creator.username,
- corpus.id))
+ host='analyse_corpus_{}'.format(corpus.id))
analysis_clients[request.sid].connect()
socketio.emit('init_corpus_analysis', 'Ready', room=request.sid)
socketio.start_background_task(observe_corpus_analysis_connection,