I recently stumble over a problem and I’m not quite sure how to solve it so here is what we do.
Each Workflow that runs into an error, triggers an Error Workflow. This Workflow is currently pretty simple as it has only the error Trigger and a Slack Post Node inside.
Now the problem is if a Workflow gets executed 900 times in 5 minutes as the API Endpoint is down (happened today), I get 900 messages in the slack channel and could hit the rate limit of slack pretty fast.
My question is now, do you have any smart idea of batching this?
What I came up with is, implementing/setting global variables, add an if node, and check if the workflow id from run 1 is the same as the id from run 2. If yes, no post on slack, if no, post slack.
This, of course, solves the issue of spamming slack but it also means, that I lose how often the error occurred + it is not a perfectly well-thought solution as it has some flaws in it.
I also thought about a wait and found that it is currently in development/close to release but I’m not sure if this would solve the issue so I’m looking forward to all of the answers and thank you very much for your time reading this :-).
BR and have a great Evening