-
Notifications
You must be signed in to change notification settings - Fork 469
Description
My Function script will get triggerred by Service Bus several times if the script is running more than 5 mins.
Repro steps
-
setup a queue in ServiceBus with default TTL, Lock time.
-
set Function App to run with App Service Plan which doesn't have 5 mins timeout limitation
-
set host.json with "functionTimeout": "00:50:00"
-
create a python script to receive message from Service Bus queue
-
send one message to queue and let script sleep 350 seconds
Expected behavior
My script get triggered once
Actual behavior
After 5 mins and 10 seconds, my script get triggered again
check log here:
https://github.com/SILENCE226/azure/blob/master/function/function.log
Related information
from this document
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus
The message is received by PeekLock mode and should be renewed automatically if the function runs longer than the PeekLock timeout
I suspect the renew mechanism is not working correctly.
My Function script sample code:
https://github.com/SILENCE226/azure/tree/master/function