# Concurrency, prefetch multiplier, task time limits, and max-tasks-per-child # are set via CELERY_WORKER_CONCURRENCY / CELERY_WORKER_PREFETCH_MULTIPLIER / # CELERY_TASK_SOFT_TIME_LIMIT / CELERY_TASK_TIME_LIMIT / # CELERY_WORKER_MAX_TASKS_PER_CHILD in .env (see config/settings.py) — not # passed as CLI flags here, so this file doesn't need editing when those # values change. Defaults (concurrency=1, prefetch=1) are the conservative # low-resource starting point from task.md's Phase 6; raise only after # measuring throughput and RSS on this host. [Unit] Description=khub Celery worker (notification reminders) After=network.target redis.service [Service] Type=simple User=khub Group=khub WorkingDirectory=/home/khub/network.csis.or.id/backend EnvironmentFile=/home/khub/network.csis.or.id/backend/.env ExecStart=/home/khub/network.csis.or.id/backend/.venv/bin/celery -A config worker -l info Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target