From #1026 , autoRenewTimeout is now open to be configurable.
However, the Function App still get triggered again by same message in queue
Provide the steps required to reproduce the problem
Set Lock Duration to 2 mins
set host.json in https://
"autoRenewTimeout": "00:00:30"
renew the lock every 30 seconds
and same message should not be triggered again
Function App get triggered again after 2 mins
n/a
Function App version:
physicalPath="D:\Program Files (x86)\SiteExtensions\Functions\1.0.10690"
Just to be sure, you have your setting in a serviceBus object in host.json like:
"serviceBus": {
"autoRenewTimeout": "00:00:30"
}
We'll try to construct a repro, but if you have a simple one, please provide it.
@mathewc yes, it's the whole settings:
{
"functionTimeout": "02:00:00",
"serviceBus": {
"maxConcurrentCalls": 16,
"prefetchCount": 100,
"autoRenewTimeout": "00:00:30"
}
}
The docs for AutoRenewTimeout say:
Gets or sets the maximum duration within which the lock will be renewed automatically. This value should be greater than the longest message lock duration; for example, the LockDuration Property.
Set this value to the length of time that you want the renewals to take place, which is typically longer than your LockDuration (or else it doesn't do much, as you are seeing). If your Lock Duration is 2 minutes, try setting autoRenewTimeout to something like 00:04:00 to make sure it's working as expected.
I was misunderstanding the meaning of autoRenewTimeout.
now it works as expect.
Thanks for detailed explanation!