Prevent Runaway Workflows with some rate limiting?
We had a strange situation today with one of our workflows that got triggered on a field update for a record. We updated the record, and the workflow started and then just kept firing endlessly even though we didn’t update the record again. I don’t know why this happened, but the workflow fired 80 times in under 30 seconds. We noticed this because another field which is based on this workflow kept updating also. The only way to stop the work flow was turn it off.
This got me really concerned. If I wasn’t actually running the record, this could have turned into a major problem. we would have thousands of workflows in a few minutes for no reason. Plus our HTTP endpoint was getting overwhelmed with traffic b/c this workflow calls it.
So my question is, can you build something into workflows that prevents this happening? Can you have a sort of rate limit on a workflow and say that the workflow should not fire more than once every 10 per minutes, for example? Is this available currently? I think this is really an urgent issue, if not available right now. It should be something in the settings, like allow maximum X number of runs per minute.