comparison messages/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 messages application. 2 Celery tasks for the messages application.
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 9
8 @task 10 @shared_task
9 def purge_messages(): 11 def purge_messages():
10 """ 12 """
11 Task to purge messages that have been deleted by both sender & receiver. 13 Task to purge messages that have been deleted by both sender & receiver.
12 14
13 """ 15 """