Azure-functions-host: autoRenewTimeout in host.json doesn't work

Created on 9 Feb 2017  路  4Comments  路  Source: Azure/azure-functions-host

From #1026 , autoRenewTimeout is now open to be configurable.
However, the Function App still get triggered again by same message in queue

Repro steps

Provide the steps required to reproduce the problem

  1. Set Lock Duration to 2 mins

  2. set host.json in https://.scm.azurewebsites.net/dev/wwwroot/host.json :
    "autoRenewTimeout": "00:00:30"

Expected behavior

renew the lock every 30 seconds
and same message should not be triggered again

Actual behavior

Function App get triggered again after 2 mins

Known workarounds

n/a

Information

Function App version:
physicalPath="D:\Program Files (x86)\SiteExtensions\Functions\1.0.10690"

bug

All 4 comments

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!

Was this page helpful?
0 / 5 - 0 ratings