diff --git a/app/corpora/cqi_over_sio/__init__.py b/app/corpora/cqi_over_sio/__init__.py index 57114faa..b2cf02dc 100644 --- a/app/corpora/cqi_over_sio/__init__.py +++ b/app/corpora/cqi_over_sio/__init__.py @@ -7,7 +7,6 @@ from flask_socketio import Namespace from inspect import signature from threading import Lock from typing import Callable, Dict, List -import math from app import db, hashids, socketio from app.decorators import socketio_login_required from app.models import Corpus, CorpusStatus @@ -122,7 +121,7 @@ class CQiNamespace(Namespace): socketio.sleep(3) retry_counter -= 1 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']['cqi_client'] = cqi_client session['cqi_over_sio']['cqi_client_lock'] = Lock() diff --git a/requirements.txt b/requirements.txt index 18593b1c..3ab13960 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ apifairy -cqi +cqi>=0.1.4 dnspython==2.2.1 docker eventlet