Isolated Worker Durable Function fails with error "Exception while executing function: Did not find any initialized language workers" -- URGENT !!

Rishikesh S Darwade 0 Reputation points
2025-02-07T03:12:06.6766667+00:00

What version of .NET does your existing project use?

.NET 6

What version of .NET are you attempting to target?

.NET 8

Description

After migrating the function app from .NET 6 In-Process to .NET 8 Isolated, we are facing lot of intermittent issues.

  • Orchestrator and functions are getting timed out. - "Timeout value of 00:20:00 was exceeded by function: Functions.WriteStateActivity"
  • Exception while executing function: Functions.IntervalCalculatorActivity Did not find any initialized language workers.

Packages :


<PackageReference Include="FlexLabs.EntityFrameworkCore.Upsert" Version="8.0.0" />

<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />

<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.3.1" />

<PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="5.0.0" />

<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.9.6" />

<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />

<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.0" />

<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.0">		<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />

		<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />

		<PackageReference Include="Oracle.EntityFrameworkCore" Version="8.21.5" />

		<FrameworkReference Include="Microsoft.AspNetCore.App" />

		<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.17.2" />

		<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />

		<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.4.0" />

		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.DurableTask" Version="1.2.2" />

		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.2.0" />

		<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="1.2.1" />

		<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.21.0" />

		<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.17.0" />

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,441 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,196 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shireesha Eeraboina 1,720 Reputation points Microsoft Vendor
    2025-02-13T16:43:43.7433333+00:00

    Hi @Rishikesh S Darwade ,

    The error "Did not find any initialized language workers" suggests that there may be an issue with the function app not being able to properly initialize the language workers (in this case, for .NET 8 Isolated).

    Possible Causes & Solutions:

    • Worker Initialization Failure: The isolated model requires a different worker setup. It might be failing to start the required .NET worker for your function. This could happen due to missing dependencies, incorrect configuration, or insufficient resources.
      • Solution: Verify that all the required dependencies are correctly installed and configured in the function app. Ensure that the .NET 8 SDK and runtime are available in the environment.
    • Function App Configuration:
      • Double-check the settings in the host.json file for the isolated worker, especially for version compatibility. Ensure you are using the correct settings for .NET 8 Isolated.
      • Example of host.json configuration for Isolated Worker:
    • Cold Start Issues: The isolated model may cause the application to experience cold starts or delayed initialization due to the isolated worker setup. You can reduce cold starts by keeping the app "warm" or adjusting the scale settings.
      • Solution: Enable Always On if using a Premium or App Service plan. This prevents your function app from going idle and might help mitigate cold start issues.

    For your reference, please review the following documentations for further clarification:

    Supported languages in Azure Functions | Microsoft Learn

    I hope this answers your query! Let me know if you require any additional help or clarification.


Your answer

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