MCPcopy
hub / github.com/celery/celery / replace_with_chain

Function replace_with_chain

t/integration/tasks.py:128–136  ·  view source on GitHub ↗
(self, *args, link_msg=None)

Source from the content-addressed store, hash-verified

126
127@shared_task(bind=True)
128def replace_with_chain(self, *args, link_msg=None):
129 c = chain(identity.s(*args), identity.s())
130 link_sig = redis_echo.s()
131 if link_msg is not None:
132 link_sig.args = (link_msg,)
133 link_sig.set(immutable=True)
134 c.link(link_sig)
135
136 return self.replace(c)
137
138
139@shared_task(bind=True)

Callers

nothing calls this directly

Calls 5

chainClass · 0.90
sMethod · 0.45
setMethod · 0.45
linkMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected