Skip to content

Commit

Permalink
Merge pull request #13 from vosi/patch-3
Browse files Browse the repository at this point in the history
celery delay replaced by async
  • Loading branch information
gotlium committed Apr 30, 2015
2 parents c9f326c + 0e6310f commit 0a1a530
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 0a1a530

Please sign in to comment.