Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autoretry_for to the mailer.send() task #9290

Open
seanh opened this issue Jan 28, 2025 · 0 comments
Open

Add autoretry_for to the mailer.send() task #9290

seanh opened this issue Jan 28, 2025 · 0 comments
Assignees

Comments

@seanh
Copy link
Contributor

seanh commented Jan 28, 2025

Add autoretry_for=(Exception,) to the mailer.send() task and remove the manual retry-handling at the bottom of the task.

We want to retry sending an email whenever anything goes wrong, not only on smtplib.socket.error.

See autoretry_for in Celery's docs, and note that there's also dont_autoretry_for if we ever need it in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants