Since we switched to Azure Functions with the Python V2 programming model, we experience a lot more problems during and after deployment then before. One that keeps puzzling me is that a blob trigger function is executed 5 times every time a new file is added in blob storage. The triggers are always 10min apart.
The code starts an Azure ML Training Job. I can't tell how long the function runs each time, because they dont show up in monitoring.
Has anyone else experienced this behavior?
I have created a blob triggered python v2 function using python interpreter 10.0
function_app.pyI am getting expected output locally.
Then I published my function to function app (consumption plan) and added the connection string in app settings.
When I uploaded a blob, I got two requests in application insight. One which was uploaded during local testing also processed a long with the one I uploaded later.
Please note, blob triggered function will process all the outstanding blob. Once blobs are processed, it maintains blob receipts to ensure no blob trigger function gets called more than once for a new blob or updated blob. Refer this ms docs for more details about blob receipt.
Later, I uploaded two more blobs keeping 2min difference between them. Both of them processed and got single request for each blob.
Please refer to application insight to get detailed logging information about your function.