azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

ServiceBus trigger in an Python function- clientRetryOptions setting of host.json does not work

Open sdg002 opened this issue 2 years ago • 2 comments

Hello Team, I have an Azure Service Bus queue trigger function and I am trying to implement exponential back by following the Microsoft guidance here.

What is the function implementation language?

Python

I have modified Host.json as below

image

I have specified extensionBundle as below

image

When I debug the Azure function, I notice that the function retries, however it does not honor the exponential back-off setting. All retries are sequential and almost within the same second

Tried installing extensions

I tried the following command with an presumption that I need to update the extension version

func extensions install --package Microsoft.Azure.WebJobs.Extensions.ServiceBus --version 5

But, this gave the message No action performed. Extension bundle is configured in C:\Users\myusername\MyTrials\any-python\AzureFuncTimerRetry\src\host.json

Relevant links

Can somebody from Microsoft please clarfiy?

Thanks.

sdg002 avatar Jan 23 '23 12:01 sdg002

Please check this too https://github.com/Azure/azure-functions-python-worker/issues/1291

sudharsan2020 avatar Aug 11 '23 05:08 sudharsan2020

@sdg002 You can use these settings to override host.json settings in your Function app. https://dev.to/massimobonanni/azure-functions-tips-override-the-hostjson-settings-21mi This worked for us

sudharsan2020 avatar Mar 08 '24 02:03 sudharsan2020