MCPcopy
hub / github.com/celery/celery / prepare_value

Method prepare_value

celery/backends/base.py:505–509  ·  view source on GitHub ↗

Prepare value for storage.

(self, result)

Source from the content-addressed store, hash-verified

503 return exc
504
505 def prepare_value(self, result):
506 """Prepare value for storage."""
507 if self.serializer != 'pickle' and isinstance(result, ResultBase):
508 return result.as_tuple()
509 return result
510
511 def encode(self, data):
512 _, _, payload = self._encode(data)

Callers 2

encode_resultMethod · 0.95

Calls 1

as_tupleMethod · 0.45