Serialization
Serializers and compression of Celery messages and results.
JSON is built in. MessagePack and YAML need an extra
(pip install celery-cloud[msgpack] / celery-cloud[yaml]). pickle is not
supported on purpose: unpickling a message from a queue executes arbitrary code.
- exception celery_cloud.serialization.SerializationError[source]
Bases:
ExceptionThe data cannot be decoded or encoded with the requested format.
- celery_cloud.serialization.decompress(data: bytes, compression: str | None) bytes[source]
Undo the
compressionof a message body (gzip/zlib, bzip2 and lzma).