Mercurial > public > sg101
comparison gpp/settings/base.py @ 516:beda97542da8
For #194, add a celery beat task for Django & forum cleanup.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 15 Dec 2011 00:59:32 +0000 |
parents | ae89ba801e8b |
children | 5171a5e9353b |
comparison
equal
deleted
inserted
replaced
515:ae89ba801e8b | 516:beda97542da8 |
---|---|
217 | 217 |
218 CELERYBEAT_SCHEDULE = { | 218 CELERYBEAT_SCHEDULE = { |
219 "potd": { | 219 "potd": { |
220 "task": "potd.tasks.pick_potd", | 220 "task": "potd.tasks.pick_potd", |
221 "schedule": crontab(minute=0, hour=0), | 221 "schedule": crontab(minute=0, hour=0), |
222 } | 222 }, |
223 "cleanup": { | |
224 "task": "core.tasks.cleanup", | |
225 "schedule": crontab(minute=0, hour=1), | |
226 }, | |
223 } | 227 } |
224 | 228 |
225 ####################################################################### | 229 ####################################################################### |
226 # GPP Specific Settings | 230 # GPP Specific Settings |
227 ####################################################################### | 231 ####################################################################### |