From db6204c7d02e1bb79edda912db247da7d3e925d0 Mon Sep 17 00:00:00 2001 From: Sameer Pashikanti Date: Thu, 27 Nov 2025 12:42:51 +0000 Subject: [PATCH] bump directus to 11.13.4 and fix server scripts --- echo/directus/Dockerfile | 7 ++++--- echo/server/prod-scheduler.sh | 2 +- echo/server/prod-worker-cpu.sh | 2 +- echo/server/prod-worker.sh | 2 +- echo/server/prod.sh | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/echo/directus/Dockerfile b/echo/directus/Dockerfile index 3ff6ba57..521cfd13 100644 --- a/echo/directus/Dockerfile +++ b/echo/directus/Dockerfile @@ -18,14 +18,15 @@ # RUN cd node_modules && find . -maxdepth 1 -type d -name "directus-extension-*" -exec mv {} ../directus \; -FROM tractr/directus-sync:11.13.0 +FROM tractr/directus-sync:11.13.4 +COPY ./templates ./templates/ +COPY ./sync.sh ./sync.sh COPY ./directus-sync.config.js ./directus-sync.config.js +COPY ./sync ./sync # COPY --from=third-party-ext /extensions/directus ./extensions -COPY ./templates ./templates/ - # https://github.com/directus/directus/blob/main/Dockerfile CMD : \ && node cli.js bootstrap \ diff --git a/echo/server/prod-scheduler.sh b/echo/server/prod-scheduler.sh index 14862d3e..569f8ca7 100755 --- a/echo/server/prod-scheduler.sh +++ b/echo/server/prod-scheduler.sh @@ -1,2 +1,2 @@ #!/bin/bash -python -m dembrane.scheduler +uv run python -m dembrane.scheduler diff --git a/echo/server/prod-worker-cpu.sh b/echo/server/prod-worker-cpu.sh index d2de98b6..24e7cda3 100755 --- a/echo/server/prod-worker-cpu.sh +++ b/echo/server/prod-worker-cpu.sh @@ -9,7 +9,7 @@ echo " Processes: $PROCESSES | Threads: $THREADS" echo " Capacity per pod: $((PROCESSES * THREADS)) concurrent tasks" echo "Single threaded tasks should use THREADS=1 to avoid LOCK issues caused by LightRag" -exec dramatiq \ +exec uv run dramatiq \ --queues cpu \ --processes "$PROCESSES" \ --threads "$THREADS" \ diff --git a/echo/server/prod-worker.sh b/echo/server/prod-worker.sh index 68f7b20c..e848491c 100755 --- a/echo/server/prod-worker.sh +++ b/echo/server/prod-worker.sh @@ -9,7 +9,7 @@ echo " Processes: $PROCESSES | Threads: $THREADS" echo " Capacity per pod: $((PROCESSES * THREADS)) concurrent tasks" echo "Network-bound tasks can benefit from multiple threads." -exec dramatiq-gevent \ +exec uv run dramatiq-gevent \ --queues network \ --processes "$PROCESSES" \ --threads "$THREADS" \ diff --git a/echo/server/prod.sh b/echo/server/prod.sh index 17ace934..4003c127 100755 --- a/echo/server/prod.sh +++ b/echo/server/prod.sh @@ -12,9 +12,9 @@ echo " Timeout: ${TIMEOUT}s" echo " Max Requests: $MAX_REQUESTS" echo "📊 Scale with K8s replicas (not workers per pod)" -exec gunicorn dembrane.main:app \ +exec uv run gunicorn dembrane.main:app \ + --worker-class dembrane.gunicorn_worker.AsyncioUvicornWorker \ --workers "$WORKERS" \ - --worker-class dembrane.asyncio_uvicorn_worker.AsyncioUvicornWorker \ --bind 0.0.0.0:8000 \ --timeout "$TIMEOUT" \ --graceful-timeout 30 \