I follow Microsoft's document to setup (using c#) but message will be expired due to Service Bus queue’s lock duration.
isSessionsEnabled
is false, my setting in `host.json is as below for reference:
{
"version": "2.0",
"functionTimeout": "00:10:00",
"extensions": {
"serviceBus": {
"prefetchCount": 100,
"messageHandlerOptions": {
"autoComplete": true,
"maxConcurrentCalls": 32,
// tried "00:00:55", "00:02:30", "00:05:00"
"maxAutoRenewDuration": "00:10:00"
}
}
}
}
I also tried to not implement extensions
in host.json
(as from document it will auto-renew the lock) but still does not work.
For reference, found this mentioned that Microsoft's document may have something wrong but did not mention possible solutions.