diff gpp/settings/base.py @ 518:5171a5e9353b

For #194, add a celery task for purging deleted private messages.
author Brian Neal <bgneal@gmail.com>
date Fri, 16 Dec 2011 01:17:35 +0000
parents beda97542da8
children f72ace06658a
line wrap: on
line diff
--- a/gpp/settings/base.py	Thu Dec 15 02:49:16 2011 +0000
+++ b/gpp/settings/base.py	Fri Dec 16 01:17:35 2011 +0000
@@ -224,6 +224,10 @@
         "task": "core.tasks.cleanup",
         "schedule": crontab(minute=0, hour=1),
     },
+    "purge messages": {
+        "task": "messages.tasks.purge_messages",
+        "schedule": crontab(minute=30, hour=1, day_of_week='sunday'),
+    }
 }
 
 #######################################################################