-
Notifications
You must be signed in to change notification settings - Fork 34
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
Attempt to send email should be retried if it fails #70
Comments
Great suggestion. Quick notes for myself or whoever may pick this up:
Add config for the retry here: data-validator/src/main/scala/com/target/data_validator/Emailer.scala Lines 11 to 18 in c17ec6a
Consume the config and handle the retry here: data-validator/src/main/scala/com/target/data_validator/Emailer.scala Lines 109 to 126 in c17ec6a
And document it in README.md here: Lines 74 to 83 in c17ec6a
|
@dbseraf1 You can save the output to a file or hdfs so you don't lose the results of the run if it fails to send the email. If you can't wait for this issue to be resolved, you could also use the Pipe output option to specify a program to run which can read the |
Currently, if sending email fails because the email server is temporarily offline or overloaded, the only choice of action is to rerun the whole validation. This can be very expensive, and may require manual intervention if the program is running as part of an automatic workflow.
It would be better if the program detected the error in sending email and did its own wait-and-retry loop. This would be pretty cheap and much better than failing.
The text was updated successfully, but these errors were encountered: