periodic tasks should not build up over time fix-celery-queues
authorBryan <btbonval@gmail.com>
Mon, 29 Jun 2015 02:19:16 +0000 (22:19 -0400)
committerBryan <btbonval@gmail.com>
Mon, 29 Jun 2015 02:19:16 +0000 (22:19 -0400)
karmaworld/settings/prod.py

index 4329cdca6a9c1663f7f01f8d30af67d780109ee0..c82a008623620ccb0eff4946e0bc4e0584455989 100644 (file)
@@ -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},
     },
 }