summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-02-10 13:10:52 +0100
committerLeif Johansson <leifj@sunet.se>2012-02-10 13:10:52 +0100
commit142e7b01d55e942254be7bd2e41a14bf37c56580 (patch)
tree5dfd45e16c3c38dece536bcc50382a53728cde54
parent51ea44d3ff328ab9cb364adf71c39349e7a90070 (diff)
mail works - sent it only once a day
-rw-r--r--src/meetingtools/apps/room/tasks.py2
1 files changed, 1 insertions, 1 deletions
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)