how retry flow programmatically works in azure function

Shweta 81 Reputation points
2021-09-10T12:57:09.487+00:00

Need some clarification -- As mentioned in the official doc that we have to re-throw the exception during the retry flow, so I want to understand after re-throwing the exception where that exception handle - in the same block of code from where it throws or in some other block created by retry mechanism.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,185 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,641 Reputation points Microsoft Employee
    2021-09-13T05:40:21.483+00:00

    @Shweta This caught by the Azure Functions Runtime which triggers the retry. The docs do mention that uncaught exceptions would trigger a retry. To quote the retry policies doc,

    A retry policy is evaluated whenever an execution results in an uncaught exception. As a best practice, you should catch all exceptions in your code and rethrow any errors that should result in a retry.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.