mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Fix app context
This commit is contained in:
parent
76fcb01186
commit
54c0d0f27d
@ -27,8 +27,8 @@ def recv_query(message):
|
|||||||
|
|
||||||
def observe_corpus_analysis_connection(app, corpus_id, session_id):
|
def observe_corpus_analysis_connection(app, corpus_id, session_id):
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
corpus = Corpus.query.filter_by(id=corpus_id).first()
|
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
|
corpus = Corpus.query.filter_by(id=corpus_id).first()
|
||||||
cqi_client = CQiClient(host=corpus.analysis_container_ip)
|
cqi_client = CQiClient(host=corpus.analysis_container_ip)
|
||||||
cqi_client.ctrl_connect('opaque', 'opaque')
|
cqi_client.ctrl_connect('opaque', 'opaque')
|
||||||
while session_id in connected_sessions:
|
while session_id in connected_sessions:
|
||||||
|
Loading…
Reference in New Issue
Block a user