Skip to content

Commit

Permalink
ee
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno committed Nov 24, 2024
1 parent e616d45 commit 1c3bfc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/notifications/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
bind=True,
retry_backoff=5,
max_retries=5,
default_retry_delay=2,
)
def send_pending_email(self, sent_email_id: int):
logger.info(
Expand Down Expand Up @@ -48,7 +49,7 @@ def send_pending_email(self, sent_email_id: int):
)
except Exception as e:
try:
self.retry(exc=e)
raise self.retry(exc=e)
except MaxRetriesExceededError:
sent_email = SentEmail.objects.get(id=sent_email_id)
sent_email.mark_as_failed()
Expand Down

0 comments on commit 1c3bfc7

Please sign in to comment.