-
-
Notifications
You must be signed in to change notification settings - Fork 205
DELAY_BETWEEN_EACH_EMAIL #201
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
Conversation
| change it to what ever you feel is good for your company:: | ||
|
|
||
| DELAY_BETWEEN_EACH_EMAIL = 0 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure here the number is seconds and can be factional (for 10000 emails waiting 0.1 or 1 second makes a huge difference. Also, if you can, please write Email as email.
|
Ok, reviewed it. It looks fine now, except that it would be nice to have a little test for the added functionality, so that it actually waits a specified amount of time (like 0.001 s). (Later, ideally, we would mock patch To update the pull request you don't need to create a new one. Just create a branch for this pull request (name it whatever makes sense to you) and make the requested modifications there. Change the pull request to match the branch. Every time the branch is updated, the pull request is updated too. To create a branch: If you want to get really fancy you can start rebasing, see https://stackoverflow.com/questions/9790448/how-to-update-a-pull-request for an example of how to do that. |
|
I'm not 100% sure how to test the delay between emails...... |
|
Code looks great now, thanks @mullerivan! To test this feature, you could write a variant of the submission test where you measure the time it takes to submit to two recipients first without an Then you assert that the difference in execution time is roughly equal to the configured delay. |
|
This has been implemented and merged in #223. |
🎱