ttvdrops/tools/systemd/ttvdrops-celery-beat.service
Joakim Hellsén 66ea46cf23
All checks were successful
Deploy to Server / deploy (push) Successful in 26s
Use celery tasks instead of systemd timers for periodic work; and add more tests
2026-04-08 03:23:18 +02:00

27 lines
670 B
Desktop File

[Unit]
Description=TTVDrops Celery Beat scheduler
After=network-online.target valkey.service ttvdrops-celery-worker.service
Wants=network-online.target valkey.service
[Service]
Type=simple
User=ttvdrops
Group=ttvdrops
SupplementaryGroups=http
UMask=0002
WorkingDirectory=/home/ttvdrops/ttvdrops
EnvironmentFile=/home/ttvdrops/ttvdrops/.env
ExecStart=/usr/bin/uv run celery -A config beat \
--scheduler django_celery_beat.schedulers:DatabaseScheduler \
--loglevel INFO
ExecStop=/bin/kill -s TERM $MAINPID
StandardOutput=journal
StandardError=journal
SyslogIdentifier=ttvdrops-celery-beat
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target