Commit 4c02b903 authored by Chris Lamb's avatar Chris Lamb 💬

Update celery systemd service for new celery version.

parent 83368371
Pipeline #48295 passed with stages
in 9 minutes and 47 seconds
...@@ -10,9 +10,11 @@ User=www-data ...@@ -10,9 +10,11 @@ User=www-data
Group=www-data Group=www-data
Restart=always Restart=always
PIDFile=/run/celery.pid
PermissionsStartOnly=true PermissionsStartOnly=true
ExecStartPre=-/usr/bin/install -o www-data -g www-data -d /var/lib/celery ExecStartPre=-/usr/bin/install -o www-data -g www-data -d /var/lib/celery
ExecStart={{ base_dir }}/{{ project_name }}/manage.py celery worker --schedule=/var/lib/celery/schedule --loglevel=info --concurrency=1 Environment=PYTHONPATH={{ base_dir }}
ExecStart={{ base_dir }}/virtualenv/bin/celery -A celery worker --app trydiffoscope.celery_app:app --loglevel=info --concucrrency=1 --beat --scheduler=/var/lib/celery/schedule --pidfile=/run/celery.pid
PrivateTmp=true PrivateTmp=true
from __future__ import absolute_import, unicode_literals
import os import os
from celery import Celery from celery import Celery
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment