Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[bug 578067] Upgrade to celery 2

  • Loading branch information...
commit fca08430f3f49f65917edd6c1a8d884dc120075b 1 parent 3f48824
James Socol authored
Showing with 9 additions and 2 deletions.
  1. +2 −1  requirements/prod.txt
  2. +4 −1 settings.py
  3. +3 −0  wsgi/kitsune.wsgi
View
3  requirements/prod.txt
@@ -3,7 +3,8 @@
GitPython==0.1.7
python-memcached==1.45
Babel>=0.9.4
-celery==1.0.6
+django-celery==2.0.2
+celery==2.0.3
python-dateutil
django-taggit==0.8.0
pytz
View
5 settings.py
@@ -176,7 +176,7 @@
'sumo',
'search',
'forums',
- 'celery',
+ 'djcelery',
'cronjobs',
'notifications',
'identicons',
@@ -387,6 +387,9 @@ def JINJA_CONFIG():
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Celery
+import djcelery
+djcelery.setup_loader()
+
BROKER_HOST = 'localhost'
BROKER_PORT = 5672
BROKER_USER = 'kitsune'
View
3  wsgi/kitsune.wsgi
@@ -9,6 +9,9 @@ wsgi_loaded = datetime.now()
wsgidir = os.path.dirname(__file__)
site.addsitedir(os.path.abspath(os.path.join(wsgidir, '../')))
+# For django-celery
+os.environ['CELERY_LOADER'] = 'django'
+
# manage adds /apps, /lib, and /vendor to the Python path.
import manage
Please sign in to comment.
Something went wrong with that request. Please try again.