Switch to using the celery persistent beat scheduler to guard against

the database not being available yet or restarting and taking the celery
scheduler with it
This commit is contained in:
Matthew Jones 2014-04-04 15:46:40 -04:00
parent 66c044daca
commit f56b716b8f

View File

@ -283,7 +283,7 @@ CELERY_ACCEPT_CONTENT = ['json']
CELERY_TRACK_STARTED = True
CELERYD_TASK_TIME_LIMIT = None
CELERYD_TASK_SOFT_TIME_LIMIT = None
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'
CELERYBEAT_SCHEDULER = 'celery.beat.PersistentScheduler'
CELERYBEAT_MAX_LOOP_INTERVAL = 60
CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend'
CELERYBEAT_SCHEDULE = {