accept on ly json as serializer in celery
This commit is contained in:
parent
2cee8905f2
commit
ef75d2af4e
1 changed files with 1 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue