Manually triggered Azure Function does not run to completion.

Min Thet Khine 31 Reputation points
2021-11-08T17:24:14.323+00:00

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!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} vote

1 answer

Sort by: Most helpful
  1. sadomovalex 3,636 Reputation points
    2021-11-23T14:37:24.053+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.