From c6e7d8cb159d4d933b89443462f1a47266283bb0 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 10 Nov 2010 11:39:09 +0000 Subject: [PATCH] Enable emailing on task failure --- settings.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/settings.py b/settings.py index a4af11d..8278053 100755 --- a/settings.py +++ b/settings.py @@ -157,8 +157,6 @@ try: except: pass -djcelery.setup_loader() - ### Celery Schedule CELERYBEAT_SCHEDULE = { @@ -172,3 +170,8 @@ CELERYBEAT_SCHEDULE = { }, } + +CELERY_SEND_TASK_ERROR_EMAILS = True + +# Load the Celery tasks +djcelery.setup_loader()