I use the Azure function (written in C #), which runs when a new message appears in the storage queue. This function calls an external web service to process the message, and when the external service responds, everything is in order.
The problem is that the external website is disabled and the web client throws an exception (without a try / catch block). Then what happens is that the function is executed repeatedly (by blue) 5 times, in less than a second between each attempt. As you can imagine, the web service will probably still be unavailable for all 5 attempts that will cause the azure to move the message to the "poison" circle.
Is it possible to set the timeout before retrying, or do I need to set up another azure function that runs once a minute to check the poison queue for messages, which then need to be recreated in normal mode?
source
share