Answer the question
In order to leave comments, you need to log in
Supervisor & Celery 3.1.25: how to set up?
Implemented the Celery 3.1.25 daemon for a Django 1.6.5 project via systemd, but ran into a problem where this option would not work (even the end customer by some miracle does not have access to the root on the server). In this regard, I decided to look for some other options and heard about the supervisor, but ran into a configuration problem.
Everything works fine with the systemd daemon in the locale, that is, celery is already configured in the project, the tasks work. The problem is precisely with the fact that to implement the same result through the supervisor.
So far, I have only done the following:
- Installed via pip install supervisor - Created a supervisord.conf
document in the root folder of the project
- Copied the default settings into it with the command echo_supervisord_conf > supervisord.conf
- Added the following block there:
[program:celeryd]
command=/home/anton/virtualenvs/env_apart27/bin/celery worker --app=project -B -l info
stdout_logfile=/home/anton/project/celeryd.log
stderr_logfile=/ home/anton/project/celeryd.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=600
- Entered commands:
$ supervisord
$ supervisorctl tail celeryd
Tried to test tasks - doesn't work. What else needs to be done?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question