did you try to do the same with simple function (e.g. which contains only 1 line of code which just adds some record to log output)? This problem may be caused by the code of the function (e.g. because of hang or deadlock) not by runtime.
Manually triggered Azure Function does not run to completion.
I followed the steps here to manually trigger a timer-triggered Python Azure Function. I can stream the logs from the Logs tab in the Monitor pane. However, several times, the Function would stop and does not run to completion. Even if I manually trigger it again, it would start but not run to completion, and the invocations do not appear in the Monitor tab. How can I make sure to let the Functions run to completion? Is there something I need to configure in my Function App? When these Functions are triggered by the set timer trigger, they always run to completion, but they do not run to completion when manually triggered. Any help would be appreciated!