From 0153db07aef82ef61a2fe27a3057462b50fc6ac2 Mon Sep 17 00:00:00 2001 From: gotlium Date: Fri, 1 May 2015 00:35:47 +0500 Subject: [PATCH] track retry --- dbmail/tasks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dbmail/tasks.py b/dbmail/tasks.py index 4257f5e..46e5eae 100644 --- a/dbmail/tasks.py +++ b/dbmail/tasks.py @@ -69,6 +69,10 @@ class Request(object): ) else: track_log[0].save() - except (signing.BadSignature, MailLog.DoesNotExist): pass + except Exception, exc: + raise mail_track.retry( + retry=True, max_retries=SEND_RETRY, + countdown=SEND_RETRY_DELAY, exc=exc, + )