MCPcopy
hub / github.com/celery/celery / fail_replaced

Function fail_replaced

t/integration/tasks.py:373–375  ·  view source on GitHub ↗

Replace this task with one which raises ExpectedException.

(self, *args)

Source from the content-addressed store, hash-verified

371
372@shared_task(bind=True)
373def fail_replaced(self, *args):
374 """Replace this task with one which raises ExpectedException."""
375 raise self.replace(fail.si(*args))
376
377
378@shared_task(bind=True)

Callers

nothing calls this directly

Calls 2

siMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected