diff --git a/dbmail/views.py b/dbmail/views.py index 68f91f5..f711430 100644 --- a/dbmail/views.py +++ b/dbmail/views.py @@ -58,7 +58,8 @@ def mail_read_tracker(request, encrypted): req = {k: v for k, v in request.META.items() if k.startswith('HTTP_') or k.startswith('REMOTE')} if defaults.ENABLE_CELERY is True: - mail_track.delay(args=[req, encrypted], retry=1, max_retries=2) + mail_track.apply_async(args=[req, encrypted], + retry=1, retry_policy={'max_retries': 3}) else: mail_track(req, encrypted)