Corp/ops/deploy/systemd/eusrr-celery-worker@.service
Игорь Надеин 4f6244ab1f
Some checks failed
Deploy production / deploy (push) Failing after 2s
Fix CORP runtime errors and harden deployment and media access
2026-09-10 16:40:08 +03:00

25 lines
683 B
Desktop File

[Unit]
Description=EUSRR Celery worker (%i slot)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=deploy
Group=deploy
WorkingDirectory=/srv/eusrr-slots/%i/backend
EnvironmentFile=/srv/eusrr-slots/%i/backend/.env
Environment=DJANGO_SETTINGS_MODULE=eusrr_backend.settings
ExecStart=/srv/eusrr-slots/%i/backend/.venv/bin/python -m celery -A eusrr_backend worker --loglevel=info --logfile=/var/log/celery/worker-%i.log --concurrency=4 -Q celery,notifications,commerce
Restart=always
RestartSec=10
TimeoutStopSec=60
KillSignal=SIGTERM
KillMode=mixed
NoNewPrivileges=yes
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target