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

Function fail

t/integration/tasks.py:455–458  ·  view source on GitHub ↗

Task that simply raises ExpectedException.

(*args)

Source from the content-addressed store, hash-verified

453
454@shared_task
455def fail(*args):
456 """Task that simply raises ExpectedException."""
457 args = ("Task expected to fail",) + args
458 raise ExpectedException(*args)
459
460
461@shared_task()

Callers

nothing calls this directly

Calls 1

ExpectedExceptionClass · 0.70

Tested by

no test coverage detected