question

Shweta-1833 avatar image
0 Votes"
Shweta-1833 asked PramodValavala-MSFT answered

how retry flow programmatically works in azure function

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered

@Shweta-1833 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.