Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29745

Best practice to deal with repeated warnings in cron?

$
0
0

Say I have a check.py script that runs every 5 minutes in cron.

As soon as something goes wrong, the script will start emailing a warning out every 5 minutes.

Arguably, spamming lots of warnings motivates one to fix the issue - however, I'm not convinced.

What's the best pattern to deal with errors where you run checks every 5 minutes but you only want to get a warning at the first run, then, say, 1 email per hour after that?


Viewing all articles
Browse latest Browse all 29745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>