MichaelCurrin/unicron

Send mail on error

MichaelCurrin opened this issue · 3 comments

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.

See Thunderbird instructions I wrote and see mac alternative. It is the easy to keep mail program and send sounds

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.