简体   繁体   中英

Azure Durable Function timeout exception

I have an Azure Durable Function whose host.json file sets all functions to never timeout: { "version": "2.0", "functionTimeout": "-1", ... } }

When the durable function is run though the activity function called by the orchestrator function gets a timeout after the default 30 minutes:

Timeout value of 00:30:00 was exceeded by function: LongRunningActivity

Microsoft.Azure.WebJobs.Host.FunctionTimeoutException: at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor+d__29.MoveNext (Microsoft.Azure.WebJobs.Host, Version=3.0.23.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35Microsoft.Azure.WebJobs.Host, Version=3.0.23.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35: C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.csMicrosoft.Azure.WebJobs.Host, Version=3.0.23.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35: 624) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)

The documentation states that the timeout defined in host.json should apply to all functions in the function app.

Have I missed something? Or is this a bug in Azure Durable Functions?

Yes, you've missed. The default timeout for App Service Plan is 30 minutes. You can extend using host.json setting, but according to what you described in here, you haven't changed.

More info:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale?WT.mc_id=AZ-MVP-4021705#timeout

host.json

{
    "functionTimeout": "-1"
}

https://docs.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM