MCPcopy
hub / github.com/celery/celery / save

Method save

celery/result.py:919–927  ·  view source on GitHub ↗

Save group-result for later retrieval using :meth:`restore`. Example: >>> def save_and_restore(result): ... result.save() ... result = GroupResult.restore(result.id)

(self, backend=None)

Source from the content-addressed store, hash-verified

917 super()._on_ready()
918
919 def save(self, backend=None):
920 """Save group-result for later retrieval using :meth:`restore`.
921
922 Example:
923 >>> def save_and_restore(result):
924 ... result.save()
925 ... result = GroupResult.restore(result.id)
926 """
927 return (backend or self.app.backend).save_group(self.id, self)
928
929 def delete(self, backend=None):
930 """Remove this result if it was previously saved."""

Callers 9

test_save_restoreMethod · 0.95
test_restore_appMethod · 0.95
apply_chordMethod · 0.95
_apply_chord_incrMethod · 0.95
test_saveMethod · 0.45
rename_widgetFunction · 0.45

Calls 1

save_groupMethod · 0.45

Tested by 6

test_save_restoreMethod · 0.76
test_restore_appMethod · 0.76
test_saveMethod · 0.36