MCPcopy Create free account
hub / github.com/celery/celery / encode

Method encode

celery/backends/mongodb.py:173–182  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

171 return self._connection
172
173 def encode(self, data):
174 if self.serializer == 'bson':
175 # mongodb handles serialization
176 return data
177 payload = super().encode(data)
178
179 # serializer which are in a unsupported format (pickle/binary)
180 if self.serializer in BINARY_CODECS:
181 payload = Binary(payload)
182 return payload
183
184 def decode(self, data):
185 if self.serializer == 'bson':

Callers 2

_store_resultMethod · 0.95
_save_groupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected