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

Function return_exception

t/integration/tasks.py:246–248  ·  view source on GitHub ↗

Return a tuple containing the exception message and sentinel value.

(e)

Source from the content-addressed store, hash-verified

244
245@shared_task
246def return_exception(e):
247 """Return a tuple containing the exception message and sentinel value."""
248 return e, True
249
250
251@shared_task

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected