Hello @m_ft
Welcome to Microsoft QnA!
Hera are some possible solutions but you have to try :
- set the timeout of your Azure Function. For example, in
host.json
:
json
{
"version": "2.0",
"functionTimeout": "00:60:00" // Premium has 30 min Default and you can set more, guaranteed to 60min
}
Read here for Limits and other details : https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale
- Consider using Durable Functions as Orchestrator , Durable Functions is an extension of Azure Functions that lets you write stateful functions in a serverless compute environment. The extension lets you define stateful workflows by writing orchestrator functions and stateful entities by writing entity functions using the Azure Functions programming model. Behind the scenes, the extension manages state, checkpoints, and restarts for you, allowing you to focus on your business logic. https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=in-process%2Cnodejs-v3%2Cv1-model&pivots=csharp
- Consider disabling retry policy :
{
"bindings": [
{
"name": "myTimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 */5 * * * *",
"retry": {"strategy": "fixedDelay", "maxRetryCount": 0, "delayInterval": "00:00:00"}
}
]
}
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards