comparison messages/tasks.py @ 581:ee87ea74d46b

For Django 1.4, rearranged project structure for new manage.py.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 May 2012 17:10:48 -0500
parents gpp/messages/tasks.py@5171a5e9353b
children aeafbf3ecebf
comparison
equal deleted inserted replaced
580:c525f3e0b5d0 581:ee87ea74d46b
1 """
2 Celery tasks for the messages application.
3
4 """
5 from celery.task import task
6
7
8 @task
9 def purge_messages():
10 """
11 Task to purge messages that have been deleted by both sender & receiver.
12
13 """
14 from messages.management.commands.purge_messages import Command
15
16 command = Command()
17 command.execute()