Implement an action that disables the current Logic App for a certain period of time (circuit breaker)
If there was an action that disabled the current Logic App for a certain period of time, we could easily implement the circuit breaker pattern.
The idea is that under certain conditions, (e.g. a particular http status code at run time) we could call a Logic App action that disables the current Logic App for a period of time, for instance an hour.
This would be very handy for Logic Apps that are being triggered via Service Bus messages, so messages are kept in the queue while there is fault in the downstream system.
Then after that period of time, the Logic App can be automatically enabled again, and try again sending the messages, if the failure occurs again, it can be disabled once more, etc.
Ideally, we should also be able to enable the Logic App manually if we knew that the downstream system is back online.
There are certainly workarounds to implement something similar, but are quite complex.
D365 Developer commented
This is a really good suggestion. In your comments you've mentioned of other workarounds, can you please share what you have done to workaround?
We have a situation where we need to apply circuit breaker pattern.