comparison potd/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
comparison
equal deleted inserted replaced
749:b6e98717690b 750:aeafbf3ecebf
1 """ 1 """
2 Celery tasks for the POTD app. 2 Celery tasks for the POTD app.
3 3
4 """ 4 """
5 from celery.task import task 5 from __future__ import absolute_import
6
7 from celery import shared_task
6 8
7 import potd.tools 9 import potd.tools
8 10
9 11
10 @task 12 @shared_task
11 def pick_potd(): 13 def pick_potd():
12 potd.tools.pick_potd() 14 potd.tools.pick_potd()