Send mail on error
MichaelCurrin opened this issue · 3 comments
MichaelCurrin commented
Use system mail. Check if is the same on mac and linux
Include script output - all of it.
Send one mail for each failure. Although noisy it helps to see a pattern. Create an issue for aggregating more than X errors into one email with count in subject. If that is even needed. As failure rate is expected to be low.
MichaelCurrin commented
See Thunderbird instructions I wrote and see mac alternative. It is the easy to keep mail program and send sounds
MichaelCurrin commented
MichaelCurrin commented
First pass could be to send all errors on same cron run. This could be actual output of main app, later can include links to task logs
Make crontab entry write out on error and hide output, conditionally.
All this avoids sending mail within the script.