Azure Function App Server Error due to FUNCTIONS_WORKER_PROCESS_COUNT setting

Syed Umair Hasan 135 Reputation points
2023-12-11T08:40:08.37+00:00

Hello,

I am using consumption plan of azure function python 3.11. I deployed a durable function which uses python programming model v1 from my vs code. THis is how the host.json looks like...

The function app deploys fine, but I want concurrency and when I add FUNCTIONS_WORKER_PROCESS_COUNT setting with a value of 10 I get server error and logs also do not show anything apart from 'Connected!'

When I remove the FUNCTIONS_WORKER_PROCESS_COUNT settings the app starts working. Please tell me how to resolve this to achieve working of parrallel tasks. THanks
User's image

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    }
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[3.*, 4.0.0)"
  },
  "extensions": {
    "durableTask": {
      "maxConcurrentActivityFunctions": 5,
      "maxConcurrentOrchestratorFunctions": 5,
      "storageProvider": {
        "type": "AzureStorage"
      }
    }
  }
}
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

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.