Hello,
Welcome to Microsoft Q&A,
Running Durable Functions on an Azure Consumption Plan can sometimes lead to unexpected host shutdowns, especially with long-running or resource-intensive orchestrations.
Resource Constraints on the Consumption Plan
- Memory and CPU Limits: Each instance in the Consumption Plan is typically limited to 1.5 GB of memory and one CPU. (https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale)
- Impact on Long-Running Functions: Resource-intensive operations may exceed these limits, causing the host to shut down or restart unexpectedly.
Potential Fixes:
- Upgrade to Premium Plan: The Premium Plan offers enhanced performance, VNET integration, and no idle timeouts, making it suitable for long-running functions.
- Optimize Function Code: Review your orchestrations and activities to ensure efficient resource usage, minimizing memory and CPU consumption.
Please Upvote and Accept the Answer if it helps!!