I'm trying to build in fail safes for things, for the dosing pumps I added the "minimum delay between doses" setting for that reason however I can see that's not going to work for everyone.
@GarrickG is a good example. Now I'm thinking of running an independent query on the schedules that will add up the total amount being dosed that day. Then as it doses throughout the day it will track how much has been dosed, once it hits the total amount expected to be dosed that day via schedules it will no longer dose and will send out an alert saying the system is trying to dose more than expected.
I also have a "minimum delay between doses" setting with the custom rules however this only overrides the main delay counter if it's set. I'm going to change the custom rule dose delay to only monitor custom rules. I think that would be more useful as you could say I don't want any more doses from a custom rule for X minutes after a custom rule ran. I'll still leave the main dose delay as that will be useful for some.
Let me know your thoughts, if you think this is good or anything else I could do? Obviously it's very important overdosing can't happen.