Hi @NFSCoder-9821 ,
You are seeing this behavior because you are throwing exception in the code. Please throw the exception in the catch block so that you dont encounter the retries.
[FunctionName("FixedDelayRetryTest")]
[FixedDelayRetry(5, "00:01:00")]
public void Run(
[ServiceBusTrigger("Topic", "Subscription", Connection = "ServiceBusConnString")] string item,
ExecutionContext context,
ILogger log
)
{
try
{
log.LogInformation($"Function executed at: {DateTime.Now}");
}
catch
{
throw new System.Exception("Error Happened!!");
}
}