This document describes Celery 2.4. For development docs, go here.
celery.execute.trace¶
celery.execute.trace¶
This module defines how the task execution is traced: errors are recorded, handlers are applied and so on.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
-
class
celery.execute.trace.
TaskTrace
(task_name, task_id, args, kwargs, task=None, request=None, propagate=None, **_)¶ -
execute
()¶
-
handle_after_return
(status, retval, type_, tb, strtb, einfo=None)¶
-
handle_failure
(exc, type_, tb, strtb)¶ Handle exception.
-
handle_retry
(exc, type_, tb, strtb)¶ Handle retry exception.
-
handle_success
(retval, *args)¶ Handle successful execution.
-
-
class
celery.execute.trace.
TraceInfo
(status='PENDING', retval=None, exc_info=None)¶ -
classmethod
trace
(fun, args, kwargs, propagate=False)¶ Trace the execution of a function, calling the appropiate callback if the function raises retry, an failure or returned successfully.
Parameters: propagate – If true, errors will propagate to the caller.
-
classmethod