SurfSmart/surfsmart-celery.service
2025-06-10 12:02:57 +08:00

13 lines
330 B
Desktop File

[Unit]
Description=SurfSmart Celery Worker
After=network.target redis.service
[Service]
WorkingDirectory=/opt/surfsmart/backend_flask
EnvironmentFile=/opt/surfsmart/.env
ExecStart=/opt/surfsmart/venv/bin/celery -A backend_flask.celery_worker.celery_app worker --loglevel=info
Restart=always
[Install]
WantedBy=multi-user.target