Mirage
Mirage

Reputation: 31548

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

I am trying to integrate celeryd 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

Upvotes: 3

Views: 1364

Answers (1)

Ferran
Ferran

Reputation: 14993

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/

Upvotes: 1

Related Questions