MCPcopy
hub / github.com/celery/celery / replace_with_chain_which_raises

Function replace_with_chain_which_raises

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

Source from the content-addressed store, hash-verified

138
139@shared_task(bind=True)
140def replace_with_chain_which_raises(self, *args, link_msg=None):
141 c = chain(identity.s(*args), raise_error.s())
142 link_sig = redis_echo.s()
143 if link_msg is not None:
144 link_sig.args = (link_msg,)
145 link_sig.set(immutable=True)
146 c.link_error(link_sig)
147
148 return self.replace(c)
149
150
151@shared_task(bind=True)

Callers

nothing calls this directly

Calls 5

chainClass · 0.90
sMethod · 0.45
setMethod · 0.45
link_errorMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected