mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
Use Hostname for cqpserver again...
This commit is contained in:
parent
2dc54f4258
commit
18311c8c9c
@ -122,10 +122,11 @@ class CQiNamespace(Namespace):
|
|||||||
socketio.sleep(3)
|
socketio.sleep(3)
|
||||||
retry_counter -= 1
|
retry_counter -= 1
|
||||||
db.session.refresh(db_corpus)
|
db.session.refresh(db_corpus)
|
||||||
cqpserver_container_name: str = f'cqpserver_{db_corpus_id}'
|
cqi_client: CQiClient = CQiClient(f'cqpserver_{db_corpus_id}')
|
||||||
cqpserver_container: Container = docker_client.containers.get(cqpserver_container_name)
|
# cqpserver_container_name: str = f'cqpserver_{db_corpus_id}'
|
||||||
cqpserver_host: str = cqpserver_container.attrs['NetworkSettings']['Networks'][current_app.config['NOPAQUE_DOCKER_NETWORK_NAME']]['IPAddress']
|
# cqpserver_container: Container = docker_client.containers.get(cqpserver_container_name)
|
||||||
cqi_client: CQiClient = CQiClient(cqpserver_host)
|
# cqpserver_host: str = cqpserver_container.attrs['NetworkSettings']['Networks'][current_app.config['NOPAQUE_DOCKER_NETWORK_NAME']]['IPAddress']
|
||||||
|
# cqi_client: CQiClient = CQiClient(cqpserver_host)
|
||||||
session['cqi_over_sio'] = {
|
session['cqi_over_sio'] = {
|
||||||
'cqi_client': cqi_client,
|
'cqi_client': cqi_client,
|
||||||
'cqi_client_lock': Lock(),
|
'cqi_client_lock': Lock(),
|
||||||
|
Loading…
Reference in New Issue
Block a user