MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.21k stars 21.36k forks source link

Azure Service Bus trigger for Azure Functions PeekLock maxAutoRenewDuration maximum value #78261

Open florianbader opened 3 years ago

florianbader commented 3 years ago

According to the current documentation the maximum value for maxAutoRenewDuration is 5 minutes but can be increased to 10 minutes. This seems to be wrong because the default value is 5 minutes but in can be increased indefinitely and also should be increased if the function timeout is higher than the maxAutoRenewDuration. This should be also stated in the documentation e.g. something like this:

The maxAutoRenewDuration is configurable in host.json, which maps to OnMessageOptions.MaxAutoRenewDuration. The default for this setting is 5 minutes according to the Service Bus documentation, whereas you can increase the Functions time limit from the default.

See MessageHandlerOptions.MaxAutoRenewDuration, ClientPumpRenewLockTimeout (default) and MessageReceivePump

Also the service bus lock can be renewed an unlimited time. See SO


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

SamaraSoucy-MSFT commented 3 years ago

Thanks for the feedback! We will review and get back to you shortly.

SamaraSoucy-MSFT commented 3 years ago

I have assigned the issue to the doc author to update appropriately.

karpikpl commented 2 years ago

I believe this can be closed. Fixed by #98591