This document describes an older version of Celery (2.5). For the latest stable version please go here.
How task error emails are formatted and sent.
copyright: |
|
---|---|
license: | BSD, see LICENSE for more details. |
Defines how and when task error e-mails should be sent.
Parameters: | task – The task instance that raised the error. |
---|
subject and body are format strings which are passed a context containing the following keys:
name
Name of the task.
id
UUID of the task.
exc
String representation of the exception.
args
Positional arguments.
kwargs
Keyword arguments.
traceback
String representation of the traceback.
hostname
Worker hostname.
Format string used to generate error email content.
Returns true or false depending on if a task error mail should be sent for this type of error.
Format string used to generate error email subjects.
Problem happened while sending the email message.