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

Send emails asynchronously #103

Merged
merged 3 commits into from
Oct 31, 2021
Merged

Send emails asynchronously #103

merged 3 commits into from
Oct 31, 2021

Conversation

mariocj89
Copy link
Member

Use celery to send emails asyncronously. This will allow to handle
secret santa draws with a high number of participants. Without this, the
server waits synchronously for the emails to be sent, timesouts and
harakiri will finalize the web backend process.

Closes #101

@mariocj89 mariocj89 self-assigned this Mar 4, 2021
@mariocj89 mariocj89 force-pushed the pu/mail-async branch 2 times, most recently from 7520579 to 566c147 Compare March 4, 2021 22:29
@mariocj89 mariocj89 mentioned this pull request Mar 4, 2021
@palvarez89
Copy link
Member

This works. I rebased and added some fixes so that it works with Celery 5 here: https://github.com/etcaterva/eas-backend/tree/pedro/async-emails

Also, there's this issue that would be nice to fix in the future, to have a nicer way of doing local development with docker-compose: #127

@mariocj89
Copy link
Member Author

What do we need for this to be released? We need to change our email backend isn't it?

@mariocj89 mariocj89 force-pushed the pu/mail-async branch 3 times, most recently from da1e1d3 to 7135556 Compare October 30, 2021 15:16
.coveragerc Outdated Show resolved Hide resolved
Use celery to send emails asyncronously. This will allow to handle
secret santa draws with a high number of participants. Without this, the
server waits synchronously for the emails to be sent, timesouts and
harakiri will finalize the web backend process.
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

Successfully merging this pull request may close these issues.

Secret Santa doesn't support more than ~25 participants
2 participants