Skip to content

Using Celery with Django

Gary Gao edited this page Apr 18, 2016 · 2 revisions

Using celery with django

Celery Notes

  • more complex

  • more dependencies

  • more powerful and flexible

Starting the worker and beat

# execute celery in project dir(suppose the name of the project is `proj`)

$ celery -A proj worker --loglevel=INFO
$ celery beat -A proj --loglevel=INFO

References

  1. celery project http://celeryproject.org

  2. First steps with Django : Using Celery with Django http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html

  3. Example Django project using Celery: https://github.com/celery/celery/tree/3.1/examples/django

  4. asynchronous tasks with django and celery https://realpython.com/blog/python/asynchronous-tasks-with-django-and-celery/

  5. scheduling tasks celery https://www.caktusgroup.com/blog/2014/06/23/scheduling-tasks-celery/

  6. asynchronous apache spark flask celery elasticsearch https://qbox.io/blog/asynchronous-apache-spark-flask-celery-elasticsearch

Clone this wiki locally