Celery refuses to accept marijuana by default, should it be turned off?

I just installed my first instance of Celery and I get warnings to disable the pickle as a serializer for security issues. What is the consequence of turning it off? What does Celery need a serial for?

If you are dependent on brine, you must set the setting to turn off this warning and make sure everything continues when you switch to celery 3.2 ::

CELERY_ACCEPT_CONTENT = ['pickle', 'json', 'msgpack', 'yaml']

+4
source share
1 answer

From http://celery.readthedocs.org/en/latest/faq.html#is-celery-dependent-on-pickle :

- pickle , ( Python ).

pickle , , CELERY_ACCEPT_CONTENT.

Python , , . json.

- . http://docs.celeryproject.org/en/latest/faq.html#isn-t-using-pickle-a-security-concern:

CELERY_TASK_SERIALIZER "json" "yaml" . ( JSON - )

+5

Source: https://habr.com/ru/post/1535203/


All Articles