Azure Durable Functions suspends for hours

Yovel Cohen 25 Reputation points
2024-04-06T17:23:17.24+00:00

I have an Azure durable function that has several activities and then schedules a few tens of sub-orchestrators. It seems to me, that after some time, the function kind of goes to sleep, and doesn't pick up new tasks, finish long-running sub-orchestrations it started originally unless I manually suspend and immediately resume the execution of the orchestrator/sub-orchestrator. some sub-orchestrators have been scheduled for more than 2 hours, even though there are plenty of free instances on the app service plan.

Examples of sleeping for hours between executions:
durableExample2

DurableExample1

And idle executions until manually suspending/resuming:
RunningIdle

suspend1

For reference, here's the host.json file:

{
  "version": "2.0",
  "logging": {
    "logLevel": {
      "default": "Information"
    },
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    },
    "fileLoggingMode": "always"
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[4.*, 5.0.0)"
  },
  "functionTimeout": "02:00:00",
  "extensions": {
    "durableTask": {
      "hubName": "AIHub",
      "maxConcurrentActivityFunctions": 6,
      "maxConcurrentOrchestratorFunctions": 12,
      "extendedSessionsEnabled": true,
      "useGracefulShutdown": true,
      "useTablePartitionManagement": true
    }
  },
  "concurrency": {
    "dynamicConcurrencyEnabled": true
  }
}
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,978 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
258 questions
0 comments No comments
{count} vote

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.