fix(celery): cap worker memory at 3g
All checks were successful
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m38s
CI/CD Pipeline / Run Tests (push) Successful in 2m58s
CI/CD Pipeline / Telegram Notify Success (push) Successful in 19s

This commit is contained in:
2026-03-23 10:29:09 +01:00
parent c28b603831
commit b4260d53cb
3 changed files with 12 additions and 1 deletions

View File

@@ -84,11 +84,16 @@ services:
target: runtime-celery
container_name: mostovik_celery_worker
restart: unless-stopped
environment:
CELERY_WORKER_CONCURRENCY: "1"
CELERY_WORKER_MAX_MEMORY_PER_CHILD_KB: "3145728"
env_file:
- .env.dev
depends_on:
migrate:
condition: service_completed_successfully
mem_limit: 3g
memswap_limit: 3g
volumes:
- ./src:/app/src
- ./logs:/app/logs