Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
Fixed celery call
  • Loading branch information
vosi committed Apr 30, 2015
1 parent c9f326c commit 0e6310f
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 0e6310f

Please sign in to comment.