
I have a flow that sends out an email when a device turns on. I also have this flow on a 1 minute recurrence (only one instance at a time). I recently had an issue where my flow would send an email when the device turned on, and then failed at the next step and restarted, which sent another email. I have like 10+ of these flows so in the course of 1 hour it sent out 12000 emails.
Is there a check I can put in place that will see if an email has been sent in the last 3 hours and if so it won't send another?