Celery send mail for every failed task
<p>I am using celery in my django application and I have set-up celery flower to monitor the tasks of celery. I have setup tasks where emails are send to the user when they register/submit/FP etc events. Now Flower gives me a nice details of the task and it's status. Now for every failed task I wanted an email to send to my account so that I don't have check the flower everyday for the failed task. <strong>I did the following configuration in my settings.py file</strong></p>

<pre><code>CELERY_SEND_TASK_ERROR_EMAILS = True 
</code></pre>

<p>and <code>ADMINS</code>.</p>

<pre><code>EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'noreply@xyz.com'
EMAIL_HOST_PASSWORD = 'xyz123@'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER
EMAIL_HOST = 'xyz.abc.com'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
</code></pre>

<p>These are settings of "From" email address. 
Few days back,one of my team member accidentally changed the password of the above email_host and forgot to update settings file. <strong>It wasn't after it was too later that the tasks are failing because of SMTP Authentication error.</strong> </p>

<p>Is there any way around this that even if SMTP authentication error occurs, I immediately get the email from celery ? I am not so sure about this. </p>

<p>Are there any other tools that will monitor my tasks and for every failed task it will send me the mail.</p>