diff accounts/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 ee87ea74d46b
children
line wrap: on
line diff
--- a/accounts/tasks.py	Mon Dec 30 15:05:43 2013 -0600
+++ b/accounts/tasks.py	Tue Dec 31 16:36:22 2013 -0600
@@ -2,12 +2,14 @@
 Celery tasks for the accounts application.
 
 """
-from celery.task import task
+from __future__ import absolute_import
+
+from celery import shared_task
 
 from accounts.stats import update_user_stats
 
 
-@task
+@shared_task
 def user_stats_task(user_id):
     """
     Run the update_user_stats() function on a new task.