Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

celery with multiple django instances

I'm using several django instances, each in a virtualenv, on the same server. How can I start the celery server and make sure it is always running and updated? I.e. after a server restart or code update?

The /etc/init.d script and the config file assume a single Django installation. Do I have to use the ./manage.py celeryd command?

Regards Simon

like image 528
sbaechler Avatar asked Oct 08 '22 11:10

sbaechler


1 Answers

You should look at django celery. This allows you to use the manage.py celeryd command for each project in it's own virtualenv. You can daemonize these processes with supervisord and manage them individually.

Check out http://ask.github.com/celery/cookbook/daemonizing.html#supervisord for guidance.

like image 179
darren Avatar answered Oct 12 '22 09:10

darren