Celery with Django - Deployment

I am considering using celery in my project. I found a lot of information on how to use it, etc. I am wondering how to deploy / package my solution.

I need to run two components - the django application, and then the celeryd worker (the component that sends emails). For example, I would like my django application to use the email_ticket task, which could send emails. I am creating tasks.py in a django application.

@task def email_ticket(from, message): ... 

Do I deploy the django application and then just run celeryd as a separate process from the same path?

 ./manage.py celeryd ... 

How about working on different servers? Expand your entire django app and only run celeryd? I understand that I could use celery only for the worker, but I would like to use celery and celery.

Any feedback is appreciated. Thanks

Thanks for any feedback.

+6
python django celery
source share
1 answer

This is described in the documentation here . The bottom line is that you need to download some initialization scripts and install some configuration. Once this is done celeryd will start at boot and you will be turned off and running.

+3
source share

All Articles