Open source video conferencing app powered by LiveKit. Built with Django and React.
🔧(summary) specify dedicated transcription queue for Celery worker
lebaudantoine9fd264ae0e30
diff --git a/Makefile b/Makefileindex 905d1a7a..9038f055 100644--- a/Makefile+++ b/Makefile@@ -118,7 +118,7 @@ run-backend: ## start only the backend application and all needed services.PHONY: run-backendrun-summary: ## start only the summary application and all needed services- @$(COMPOSE) up --force-recreate -d celery-summary+ @$(COMPOSE) up --force-recreate -d celery-summary-transcribe.PHONY: run-summaryrun:diff --git a/compose.yml b/compose.ymlindex c9a795db..7f8c04d0 100644--- a/compose.yml+++ b/compose.yml@@ -243,13 +243,13 @@ services:depends_on:- redis-summary- celery-summary:- container_name: celery-summary+ celery-summary-transcribe:+ container_name: celery-summary-transcribebuild:context: ./src/summarydockerfile: Dockerfiletarget: production- command: celery -A summary.core.celery_worker worker --pool=solo --loglevel=debug+ command: celery -A summary.core.celery_worker worker --pool=solo --loglevel=debug -Q transcribe-queueenv_file:- env.d/development/summaryvolumes:diff --git a/src/summary/summary/api/route/tasks.py b/src/summary/summary/api/route/tasks.pyindex bc9a89c4..37895e9e 100644--- a/src/summary/summary/api/route/tasks.py+++ b/src/summary/summary/api/route/tasks.py@@ -10,6 +10,9 @@ from pydantic import BaseModelfrom summary.core.celery_worker import (process_audio_transcribe_summarize_v2,)+from summary.core.config import get_settings++settings = get_settings()class TaskCreation(BaseModel):@@ -39,7 +42,8 @@ async def create_task(request: TaskCreation):request.room,request.recording_date,request.recording_time,- ]+ ],+ queue=settings.transcribe_queue,)return {"id": task.id, "message": "Task created"}diff --git a/src/summary/summary/core/config.py b/src/summary/summary/core/config.pyindex 9b61be18..b65e9281 100644--- a/src/summary/summary/core/config.py+++ b/src/summary/summary/core/config.py@@ -24,6 +24,8 @@ class Settings(BaseSettings):celery_result_backend: str = "redis://redis/0"celery_max_retries: int = 1+ transcribe_queue: str = "transcribe-queue"+# Minio settingsaws_storage_bucket_name: straws_s3_endpoint_url: str