django - Celerybeat service not starting -
i'm trying celery running service , i'm having problem celerybeat_opts parameter. can start celery service fine , i'm able start celerybeat fine via command line this:
celery -a base beat -s djcelery.schedulers.databasescheduler -l debug --pidfile=/tmp/celerybeat.pid
but when start celerybeat service this:
sudo service celerybeat start
it doesn't start.
here's celerybeat config file @ /etc/default/celerybeat:
export django_settings_module="settings" # absolute or relative path 'celery' command: celery_bin="/path/to/.virtualenvs/django/bin/celery" # chdir @ start. celeryd_chdir="/srv/myproj/" # arguments celerybeat # when below line commented out, service starts!?! celerybeat_opts="-s djcelery.schedulers.databasescheduler" celerybeat_log_file="/var/log/celery/beat.log" celerybeat_pid_file="/var/run/celery/beat.pid" # workers should run unprivileged user. # need create user manually (or can choose # user/group combination exists, e.g. nobody). celerybeat_user="myuser" celerybeat_group="mygroup"
and oddest part is, noted in config file, if comment out celerybeat_opts line, can start service fine using service command. causing service not start when specify celerybeat_opts="-s djcelery.schedulers.databasescheduler" in config file. have clue what's going on here or how might able troubleshoot it? thank you.
i added line /etc/default/celerybeat file , started working:
celery_app="base"
Comments
Post a Comment