Skip to content
Snippets Groups Projects
Commit 7535ed6c authored by jan.bednarik's avatar jan.bednarik
Browse files

Limit emails task retry

parent 6fa12939
No related branches found
No related tags found
2 merge requests!32Limit emails task retry,!31Limit emails task retry
Pipeline #16217 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment