All checks were successful
CI/CD Pipeline / Code Quality Checks (pull_request) Successful in 1m6s
CI/CD Pipeline / Run Tests (pull_request) Successful in 1m18s
CI/CD Pipeline / Build Docker Images (pull_request) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (pull_request) Has been skipped
19 lines
484 B
Desktop File
19 lines
484 B
Desktop File
[Unit]
|
|
Description=Celery Worker for Django project
|
|
After=network.target redis.service postgresql.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=www-data
|
|
Group=www-data
|
|
EnvironmentFile=/var/www/project/.env
|
|
Environment=DJANGO_SETTINGS_MODULE=config.settings.production
|
|
RuntimeDirectory=celery
|
|
WorkingDirectory=/var/www/project/src
|
|
ExecStart=/var/www/project/venv/bin/celery -A config worker --loglevel=INFO
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|