Re: how to use celery

0 views
Skip to first unread message

David Burke

unread,
Jul 27, 2012, 11:10:35 PM7/27/12
to student-worker-rela...@googlegroups.com
Also to start the services:

./manage.py celeryd
./manage.py celery beat -S djcelery.schedulers.DatabaseScheduler

On production you would want these on a init script

You can even work with it in /admin/djcelery/ to schedule tasks.

All cronjobs should be converted to this.

On Fri, Jul 27, 2012 at 1:13 PM, David Burke <dbu...@cristoreyny.org> wrote:
Why use celery?
You have a asynchronous task (calculate GPA - but do other stuff while that happens) Maybe now your report is now multithreaded and thus faster? 
You have scheduled tasks and you don't want to edit crontab (which you don't!)

git pull
apt-get install python2.7-dev rabbitmq-server
pip install django-celery
ensure djcelery is in install_apps

read a bit:



John Milner

unread,
Jul 29, 2012, 2:38:37 PM7/29/12
to student-worker-rela...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages