This document describes the current stable version of Celery (3.1). For development docs, go here.
How task error emails are formatted and sent.
Problem happened while sending the email message.
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 nodename.
Format string used to generate error email content.
Return 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.