Azure function process terminates abruptly (but successfully) mid way execution

Simoes, Ruben Raposo 1 Reputation point
2022-07-28T11:31:08.483+00:00

We have a timer trigger azure function (.net 6) that sometimes stops successfully mid execution not reaching the end of the code or throwing any error. The function is a very simple function that reads several database tables through entity framework 6 and sends the data to application insights sdk. however sometimes the function in middle of execution stops without any error and prints a success message like the following:

  • Executed 'LogEverything' (Succeeded, Id=810637e7-f0f0-4d99-b1e0-feb809bffbbb, Duration=7790ms)
    This error is not replicable locally
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,321 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Simoes, Ruben Raposo 1 Reputation point
    2022-08-22T09:42:51.913+00:00

    This issue stopped happening once we've updated the following dependencies:

    • "Microsoft.NET.Sdk.Functions" Version="4.1.0" -> Version="4.1.1"
    • "Microsoft.EntityFrameworkCore" Version="6.0.3" -> Version="6.0.8"
    • "Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.3" -> Version="6.0.8"
    • "Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.6" -> we removed this one
    • "Microsoft.EntityFrameworkCore.Tools" Version="6.0.3" -> Version="6.0.8"
    0 comments No comments