This document describes an older version of Celery (2.1). For the latest stable version please go here.

Tracing Execution - celery.execute.trace

class celery.execute.trace.TaskTrace(task_name, task_id, args, kwargs, task=None, propagate=None, **_)
execute()
handle_after_return(status, retval, type_, tb, strtb)
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.

Previous topic

Backend: Tokyo Tyrant - celery.backends.tyrant

Next topic

Serialization Tools - celery.serialization

This Page