From: Bryan Date: Mon, 29 Jun 2015 02:19:16 +0000 (-0400) Subject: periodic tasks should not build up over time X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fheads%2Ffix-celery-queues;p=oweals%2Fkarmaworld.git periodic tasks should not build up over time --- 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}, }, }