Azure Feature Timeout for Consumption Plan

Is there a way to change the current 5-minute timeout for Azure features that work according to the consumption plan?

For some analytics calculations, 5 minutes is not enough time.

An alternative to using webjobs does not allow parallel execution of a function.

+11
source share
2 answers

(The other answer is a bit confusing, so write, not edit)

Azure features can now run for up to 10 minutes using a consumption plan:

5 . 10 -, functionTimeout host.json.

: https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#consump-plan.

: host.json

// Value indicating the timeout duration for all functions.
// In Dynamic SKUs, the valid range is from 1 second to 10 minutes and the default value is 5 minutes.
// In Paid SKUs there is no limit and the default value is null (indicating no timeout).

// Set functionTimeout to 10 minutes
{
    "functionTimeout": "00:10:00"
}

:
https://buildazure.com/2017/08/17/azure-functions-extend-execution-timeout-past-5-minutes/
https://github.com/Azure/azure-webjobs-sdk-script/wiki/host.json

+12

5 . :

, - 5 , , , , () 5 . -, , - , , . , mid-invocation - , . , .

, , . , . , , , , "operationId" Service Bus ( ), "CheckStatus",

https://github.com/Azure/azure-webjobs-sdk-script/issues/18

https://github.com/Azure/Azure-Functions/issues/75

UPDATE

Azure 10 : https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale

+5

Source: https://habr.com/ru/post/1670356/


All Articles