diff --git a/helios_auth/auth_systems/pirati.py b/helios_auth/auth_systems/pirati.py index 595f73ab70377ff0f233e01a1815082a5a654c7c..80fc39ca4847d9bd714754e59e3aa6930f5f3f1e 100644 --- a/helios_auth/auth_systems/pirati.py +++ b/helios_auth/auth_systems/pirati.py @@ -168,7 +168,12 @@ def old_member_to_user_info(member): # Celery tasks -@shared_task(autoretry_for=(Exception,), max_retries=None, retry_backoff=True) +@shared_task( + autoretry_for=(Exception,), + max_retries=160, # 3 days + retry_backoff=True, + retry_backoff_max=1800, +) def send_email_task(recipient, subject, body): send_mail(subject, body, settings.SERVER_EMAIL, [recipient], fail_silently=False)