woodwind/celeryconfig.py
2015-01-27 22:14:30 -08:00

15 lines
430 B
Python

import datetime
BROKER_URL = 'redis://'
CELERY_RESULT_BACKEND = 'redis'
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_ACCEPT_CONTENT = ['json']
CELERYBEAT_SCHEDULE = {
'tick-every-5-minutes': {
'task': 'woodwind.tasks.tick',
'schedule': datetime.timedelta(minutes=5),
}
}
# recommended to disable if not using -- introduces a lot of complexity
CELERY_DISABLE_RATE_LIMITS = True