From ac71b624557c6203873e7417fff3c358d97f62ca Mon Sep 17 00:00:00 2001 From: marcel Date: Fri, 26 Jul 2024 12:14:32 +0200 Subject: [PATCH] bugfix: renamed database_queue --- app/api/endpoints/ontologies.py | 2 +- init.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/endpoints/ontologies.py b/app/api/endpoints/ontologies.py index 58c7c3b..b150f9a 100644 --- a/app/api/endpoints/ontologies.py +++ b/app/api/endpoints/ontologies.py @@ -39,7 +39,7 @@ async def build_from_scratch(): urls.append(url.decode().strip()) for url in urls: - chain(add_ontology_task.s(url), add_ontologies.s().set(queue='neo4j_write_queue')).apply_async() + chain(add_ontology_task.s(url), add_ontologies.s().set(queue='database_queue')).apply_async() return Response(status_code=status.HTTP_204_NO_CONTENT) diff --git a/init.sh b/init.sh index e61695d..ddc69db 100644 --- a/init.sh +++ b/init.sh @@ -6,7 +6,7 @@ echo "starting swobup..." echo "starting celery" celery -A tasks worker -l info & -celery -A tasks worker --queues=database_queue --concurrency=1 & +celery -A tasks worker --queues=database_queue --concurrency=1 -l info & celery -A tasks flower -l info --port=1111 & echo "starting uvicorn" uvicorn --workers 10 --host 0.0.0.0 --port 8000 main:app \ No newline at end of file