Skip to content
Snippets Groups Projects
Commit c3f42690 authored by Ben Adida's avatar Ben Adida
Browse files

added celery-based async tasks

parent dff3cb65
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,14 @@ LICENSE: this code is released under the GPL v3 or later. ...@@ -5,3 +5,14 @@ LICENSE: this code is released under the GPL v3 or later.
NEEDS: NEEDS:
- http://github.com/openid/python-openid - http://github.com/openid/python-openid
- rabbitmq 1.8
-- http://www.rabbitmq.com/debian.html
-- update the deb source
-- apt-get install rabbitmq-server
- celery 2.0.2 and django-celery 2.0.2 for async jobs
-- http://celeryq.org
-- apt-get install python-setuptools
-- easy_install celery
-- easy_install django-celery
Subproject commit 029425d7535a357cb81a0a6d8617ea8028495512 Subproject commit 50eaae0e1b9c30d52798d4fc65a8800a7aa19ecb
...@@ -77,6 +77,9 @@ INSTALLED_APPS = ( ...@@ -77,6 +77,9 @@ INSTALLED_APPS = (
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
## needed for queues
'djcelery',
## HELIOS stuff
'auth', 'auth',
'helios', 'helios',
'server_ui', 'server_ui',
...@@ -130,3 +133,12 @@ logging.basicConfig( ...@@ -130,3 +133,12 @@ logging.basicConfig(
format = '%(asctime)s %(levelname)s %(message)s' format = '%(asctime)s %(levelname)s %(message)s'
) )
# set up django-celery
BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_USER = "guest"
BROKER_PASSWORD = "guest"
BROKER_VHOST = "/"
import djcelery
djcelery.setup_loader()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment