python - How to configure TASK_SERIALIZER with django-celery -



python - How to configure TASK_SERIALIZER with django-celery -

i'm using django-celery , i'd set task_serializer json instead of pickle.

i can on per-method basis changing task decorators from

@task

to

@task(serializer="json")

but i'd globally. setting

task_serializer="json"

in settings.py doesn't work. trying run

import celery celery.conf.task_serializer="json"

(as implied here) results in

attributeerror: 'module' object has no attribute 'conf'

any thought how configure setting when running celery through django?

figured out.

in settings.py need set

celery_task_serializer = "json"

docs confusing, @ to the lowest degree me.

python django celery django-celery

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -