feat: add error handling to email task (#30820)

This commit is contained in:
Zainab Amir
2022-08-04 13:03:03 +05:00
committed by GitHub
parent 6c47a6d0aa
commit e73139d60f
3 changed files with 30 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ def check_pwned_password_and_send_track_event(user_id, password, internal_user=F
return {} # lint-amnesty, pylint: disable=raise-missing-from
@shared_task(bind=True)
@shared_task(bind=True, default_retry_delay=30, max_retries=2)
@set_code_owner_attribute
def send_activation_email(self, msg_string, from_address=None):
"""