I have a few cron jobs and one of them is run every minute. I had to take a website down for two hours and it caused an error on that one specific cron job and I got almost 120 emails in those two hours until I was done upgrading the site.
Now let's say I was asleep and something happened. I don't want hundreds to thousands of emails because one cron job ran every minute and failed. Is there something I can do to limit how often it emails me while allowing it to run every minute?
PS: We don't have smtp servers, we use a 3rd party so I am glad nothing was marked as spam and disabled.