diff --git a/docker-compose.yaml b/docker-compose.yaml index 5565bc2..2bbac44 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -36,7 +36,7 @@ services: - "5672:5672" mongodb: - image: mongo:3.2 + image: mongo:7.0 restart: unless-stopped volumes: - ${PROTES_DATA_DIR:-../data/pro_tes}/db:/data/db diff --git a/pro_tes/ga4gh/tes/task_runs.py b/pro_tes/ga4gh/tes/task_runs.py index 8bfccc3..34b9cad 100644 --- a/pro_tes/ga4gh/tes/task_runs.py +++ b/pro_tes/ga4gh/tes/task_runs.py @@ -417,7 +417,7 @@ def _write_doc_to_db( ) document.worker_id = uuid() try: - self.db_client.insert(document.dict(exclude_none=True)) + self.db_client.insert_one(document.dict(exclude_none=True)) except DuplicateKeyError: continue assert document is not None diff --git a/requirements.txt b/requirements.txt index 983ac80..104f329 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ celery-types>=0.20.0 connexion>=2.11.2,<3 -foca>=0.12.1 +foca>=0.13.0 geopy>=2.2.0 gunicorn>=20.1.0,<21 ip2geotools>=0.1.6