From 142e7b01d55e942254be7bd2e41a14bf37c56580 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 10 Feb 2012 13:10:52 +0100 Subject: mail works - sent it only once a day --- src/meetingtools/apps/room/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meetingtools/apps/room/tasks.py b/src/meetingtools/apps/room/tasks.py index bf8e837..f2527b2 100644 --- a/src/meetingtools/apps/room/tasks.py +++ b/src/meetingtools/apps/room/tasks.py @@ -212,7 +212,7 @@ def send_message(user,subject,message): logging.error("Error while sending email: \n%s" % exc) send_message.retry(exc=exc) -@periodic_task(run_every=crontab(hour="*", minute="*", day_of_week="*")) +@periodic_task(run_every=crontab(hour="1", minute="5", day_of_week="*")) def clean_old_rooms(): for acc in ACCluster.objects.all(): then = datetime.now() - timedelta(days=30) -- cgit v1.1