-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After migration to .NET 8(Isolated) from .NET 6(In-Proc), Azure Isolated function (queue triggered) throwing timeout issue. #2510
Comments
Additional Details from Application Insights: Exception Properties |
Thanks for reporting .PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="1.2.1" pls update this as updated one. 1.3.2 |
After updating "Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" from Version="1.2.1" to 1.3.2, still the issue persists. We are still getting timeout exception. |
please use all updated sdk. |
We have updated all packages, still we are getting the timeout exception. |
will check please share the updated list of pkg with version and memory you used.Thanks |
Below are the list of updated packages: |
Hi, |
How does your memory consumption look like? |
For the Azure functions we didn't check our memory consumption, so I can't tell. But for our applications, yes after we migrated to .NET 8 we had huge memory consumption that caused us issues. What worked for us was moving our Linux distribution image of our containers to be Alpine instead of Debian. |
@yaseen22 , Can you please help me with the Alpine base image that you have used for isolated function with .Net 8 ? |
For Azure functions I didn't use the Alpine image, I'm not sure if this is even possible, For Azure function I uses the .NET environment. The Alpine base image is used for my application at docker image |
Hi @yaseen22, can you share the docker file you have used for deployment of azure function? |
Also running into Timeout exceptions here. Found that this is actually caused by enabling the user code exception, as it is documented in the guide here at the bottom of the logging section:
When commenting out this code, everything works as expected. But the question is then how do we make sure the exceptions are not getting wrapped? |
Is there any update around this topic? I have same issue btw. I do not have the following code piece in my code
|
The Azure function (queue triggered) is hosted in AKS cluster (Linux Debian). We are migrating from .NET 6 to .NET 8, in this process we migrated this in-proc azure function to isolated function. After migration we started receiving timeout exception whenever we submit 20+ messages to the queue quickly. In .NET 6 (In-Proc), we never faced this issue. This queue triggered isolated function makes some http calls, DB calls, does some processing and generates pdf.
These are the settings and packages in .csproj file:
PropertyGroup
TargetFramework net8.0
AzureFunctionsVersion v4
LangVersion 12.0
OutputType Exe
PropertyGroup
ItemGroup
PackageReference Include="Azure.Identity" Version="1.11.2"
PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0"
PackageReference Include="Microsoft.Azure.Core.NewtonsoftJson" Version="2.0.0"
PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.22.0"
PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.17.3-preview1"
PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.2.0"
PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs" Version="6.4.0"
PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.1.0"
PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="1.2.1"
PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Storage.Queues" Version="5.4.0"
PackageReference Include="Microsoft.Extensions.Http.Polly" Version="8.0.4"
PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0"
PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0"
PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.9.2"
PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2"
PackageReference Include="NuGet.Packaging" Version="6.9.1"
PackageReference Include="RazorEngineCore" Version="2024.4.1"
PackageReference Include="System.Security.Cryptography.Xml" Version="8.0.0"
PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.4"
PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.4"
ItemGroup
Program.cs
public class Program
{
public IConfiguration Configuration { get; private set; }
static async Task Main(string[] args)
{
await CreateHostBuilder(args).Build().RunAsync();
}
}
[Function("Test")]
public async Task Test([QueueTrigger("test", Connection = "TestConnectionString")] Custom custom)
{
try
{
await CreatePdf(custom);
}
catch (Exception ex)
{
await OnFailure(custom, ex);
}
}
The text was updated successfully, but these errors were encountered: