开发者

Confused with celeryd config file and daemon file for Django in Linux

I am trying to integrate cel开发者_高级运维eryd with djnago but i am stuck with its config file

There are three files they are talking about. I need to know what should be the contents of those files

My Celeryd executable is in /opt/python27/bin/celeryd

There are three file i don't know what should be their contents

  1. celeryconfig.py
  2. /etc/default/celeryd
  3. /etc/init.d/celeryd

I am following this linl http://celeryq.org/docs/cookbook/daemonizing.html I am confused between 2 and 3 beacuse configuration is in celeryconfig.py

But in /etc/init.d/celeryd they have this code

if test -f /etc/default/celeryd; then
    . /etc/default/celeryd
fi


When using celery with django, you should not use the celeryd executable directly.

You have to install django-celery and run the celery daemon as

python manage.py celeryd

Also, you have to configure celery on the settings.py file opf your django project.

Get more information at http://packages.python.org/django-celery/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜