Multiple Django Celery

I use multiple instances of django, each in virtualenv, on the same server. How can I start the celery server and make sure it is always up and running? That is, after restarting the server or updating the code?

The / etc / init.d script file and the configuration file assume one Django installation. Should I use a command. /manage.py celeryd?

Relationship Simon

+5
source share
2 answers

You should look at celery django. This allows you to use the command manage.py celerydfor each project in your own virtualenv. You can demonize these processes using the supervisor and manage them individually.

http://ask.github.com/celery/cookbook/daemonizing.html#supervisord .

+3

tasks.py , , , ./manage.py celeryd start python manage.py celeryd start --settings=settings settings.py . , .

+1

All Articles