MCPcopy
hub / github.com/celery/celery / restore

Method restore

celery/result.py:976–982  ·  view source on GitHub ↗

Restore previously saved group result.

(cls, id, backend=None, app=None)

Source from the content-addressed store, hash-verified

974
975 @classmethod
976 def restore(cls, id, backend=None, app=None):
977 """Restore previously saved group result."""
978 app = app or (
979 cls.app if not isinstance(cls.app, property) else current_app
980 )
981 backend = backend or app.backend
982 return backend.restore_group(id)
983
984
985@Thenable.register

Callers 6

test_apply_chordMethod · 0.45
test_save_restoreMethod · 0.45
test_restore_appMethod · 0.45

Calls 1

restore_groupMethod · 0.45

Tested by 6

test_apply_chordMethod · 0.36
test_save_restoreMethod · 0.36
test_restore_appMethod · 0.36