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?