Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

[MISC] Add worker-metrics service to compose override templates (#1841)

Chandrasekharan M32f692337464
diff --git a/docker/sample.compose.override.yaml b/docker/sample.compose.override.yaml
index eeb728c82..36606f8f2 100644
--- a/docker/sample.compose.override.yaml
+++ b/docker/sample.compose.override.yaml
@@ -319,6 +319,24 @@ services:
- action: rebuild
path: ../workers/uv.lock
+ #########################################################################################################
+ # Celery worker for dashboard metrics (memory optimized: reduced autoscale)
+ worker-metrics:
+ build:
+ dockerfile: docker/dockerfiles/backend.Dockerfile
+ context: ..
+ command: "-A backend worker --loglevel=info -Q dashboard_metric_events --autoscale=2,1"
+ develop:
+ watch:
+ - action: sync+restart
+ path: ../backend/
+ target: /app
+ ignore: [.venv/, __pycache__/, "*.pyc", .pytest_cache/, .mypy_cache/]
+ - action: sync+restart
+ path: ../unstract/
+ target: /unstract
+ ignore: [.venv/, __pycache__/, "*.pyc", .pytest_cache/, .mypy_cache/]
+
# V1 workers disabled by default (use workers-v2 profile instead)
worker:
profiles: