From 6c365dd72421cdba2d683cd1d34201435989e422 Mon Sep 17 00:00:00 2001 From: Bryan Date: Sun, 28 Jun 2015 22:19:16 -0400 Subject: [PATCH] periodic tasks should not build up over time --- karmaworld/settings/prod.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/karmaworld/settings/prod.py b/karmaworld/settings/prod.py index 4329cdc..c82a008 100644 --- a/karmaworld/settings/prod.py +++ b/karmaworld/settings/prod.py @@ -88,14 +88,17 @@ CELERYBEAT_SCHEDULE = { 'tweet-about-notes': { 'task': 'tweet_note', 'schedule': timedelta(minutes=60), + 'options': {'expires': 3600}, }, 'check-mturk-results': { 'task': 'get_extract_keywords_results', 'schedule': timedelta(minutes=20), + 'options': {'expires': 1200}, }, 'update-scoreboard': { 'task': 'fix_note_counts', 'schedule': timedelta(days=1), + 'options': {'expires': 86400}, }, } -- 2.25.1