mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Update cqi to v0.1.4
This commit is contained in:
parent
d898cd8516
commit
8182cccecd
@ -7,7 +7,6 @@ from flask_socketio import Namespace
|
|||||||
from inspect import signature
|
from inspect import signature
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
from typing import Callable, Dict, List
|
from typing import Callable, Dict, List
|
||||||
import math
|
|
||||||
from app import db, hashids, socketio
|
from app import db, hashids, socketio
|
||||||
from app.decorators import socketio_login_required
|
from app.decorators import socketio_login_required
|
||||||
from app.models import Corpus, CorpusStatus
|
from app.models import Corpus, CorpusStatus
|
||||||
@ -122,7 +121,7 @@ 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)
|
||||||
cqi_client = CQiClient(f'cqpserver_{db_corpus_id}', timeout=math.inf)
|
cqi_client = CQiClient(f'cqpserver_{db_corpus_id}', timeout=None)
|
||||||
session['cqi_over_sio'] = {}
|
session['cqi_over_sio'] = {}
|
||||||
session['cqi_over_sio']['cqi_client'] = cqi_client
|
session['cqi_over_sio']['cqi_client'] = cqi_client
|
||||||
session['cqi_over_sio']['cqi_client_lock'] = Lock()
|
session['cqi_over_sio']['cqi_client_lock'] = Lock()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
apifairy
|
apifairy
|
||||||
cqi
|
cqi>=0.1.4
|
||||||
dnspython==2.2.1
|
dnspython==2.2.1
|
||||||
docker
|
docker
|
||||||
eventlet
|
eventlet
|
||||||
|
Loading…
Reference in New Issue
Block a user