Clear Python bytecode cache on worker start

This commit is contained in:
giles
2026-02-02 23:51:55 +00:00
parent 32474380fa
commit b2be9ff976
2 changed files with 2 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ RUN ./build-client.sh
RUN mkdir -p /data/cache
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV EFFECTS_PATH=/app/artdag-effects
ENV PYTHONPATH=/app

View File

@@ -78,7 +78,7 @@ services:
l1-worker:
image: git.rose-ash.com/art-dag/l1-server:latest
command: celery -A celery_app worker --loglevel=info -E
command: sh -c "find /app -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null; celery -A celery_app worker --loglevel=info -E"
environment:
- REDIS_URL=redis://redis:6379/5
- DATABASE_URL=postgresql://artdag:artdag@postgres:5432/artdag