Skip to content

Commit

Permalink
Merge branch 'development' of github.com:LPgenerator/django-db-mailer…
Browse files Browse the repository at this point in the history
… into development
  • Loading branch information
gotlium committed Apr 30, 2015
2 parents 81e21f4 + 0a1a530 commit af68cd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbmail/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit af68cd3

Please sign in to comment.