accept on ly json as serializer in celery

This commit is contained in:
Pratik Vyas 2014-02-19 23:14:58 +05:30 committed by Anand Doshi
parent 2cee8905f2
commit ef75d2af4e

View file

@ -21,6 +21,7 @@ def get_app():
backend=conf['celery_result_backend'])
app.autodiscover_tasks(frappe.get_all_apps(with_frappe=True, with_internal_apps=False))
app.conf.CELERY_TASK_SERIALIZER = 'json'
app.conf.CELERY_ACCEPT_CONTENT = ['json']
app.conf.CELERYBEAT_SCHEDULE = {
'scheduler': {
'task': 'frappe.tasks.enqueue_scheduler_events',