diff wiki/tasks.py @ 750:aeafbf3ecebf

For #63, upgrade to celery 3.1.7.
author Brian Neal <bgneal@gmail.com>
date Tue, 31 Dec 2013 16:36:22 -0600
parents a4300639c6e7
children
line wrap: on
line diff
--- a/wiki/tasks.py	Mon Dec 30 15:05:43 2013 -0600
+++ b/wiki/tasks.py	Tue Dec 31 16:36:22 2013 -0600
@@ -2,11 +2,13 @@
 Celery tasks for the wiki app.
 
 """
+from __future__ import absolute_import
+
 import datetime
 import logging
 import time
 
-from celery.task import task
+from celery import shared_task
 from django.conf import settings
 import redis
 
@@ -16,7 +18,7 @@
 logger = logging.getLogger(__name__)
 
 
-@task
+@shared_task
 def expire_cookies():
     """
     Periodically run this task to remove expired cookies from the Redis set