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

Method __init__

celery/result.py:89–101  ·  view source on GitHub ↗
(self, id, backend=None,
                 task_name=None,            # deprecated
                 app=None, parent=None)

Source from the content-addressed store, hash-verified

87 backend = None
88
89 def __init__(self, id, backend=None,
90 task_name=None, # deprecated
91 app=None, parent=None):
92 if id is None:
93 raise ValueError(
94 f'AsyncResult requires valid id, not {type(id)}')
95 self.app = app_or_default(app or self.app)
96 self.id = id
97 self.backend = backend or self.app.backend
98 self.parent = parent
99 self.on_ready = promise(self._on_fulfilled, weak=True)
100 self._cache = None
101 self._ignored = False
102
103 @property
104 def ignored(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected