Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

719
Visualizações
Azure Function Timeout after 30 minutes

I have set up an Azure Function v3. Configured with Standard plan per this document: https://docs.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout. Also, set up functionTimeout to Unlimited

Is Standard (S1:1) plan the right one? Do I need to change it to P1V12 in order to be able to set it to 'unlimited' timeout?

enter image description here enter image description here host.json:

enter image description here

Keeps crashing after 30 minutes: enter image description here

It's as if host.json is not being considered? or is the plan not correct? Please help.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I was able to get this to work is to add an attribute:

[Timeout("05:00:00")]
[FunctionName("MyFunction")] 

Seems host.json file is being ignored

EDIT - Fix with HOST.JSON file

Found this thread: https://github.com/Azure/azure-functions-servicebus-extension/issues/81

Solution: https://github.com/Azure/azure-functions-servicebus-extension/issues/34#issuecomment-596781972

public override void Configure(IFunctionsHostBuilder builder)
        {
            var tempServices = builder.Services.BuildServiceProvider();
            var azureFuncConfig = tempServices.GetService<IConfiguration>();
            var configBuilder = new ConfigurationBuilder()
                .AddConfiguration(azureFuncConfig)
                .SetBasePath(Environment.CurrentDirectory)
                .AddJsonFile("local.settings.json", optional: true, reloadOnChange: true)
                .AddEnvironmentVariables();

            var configReader = configBuilder.Build();
            var config = configBuilder.AddAzureKeyVault(new AzureKeyVaultConfigurationOptions()
            {
                Client = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(new AzureServiceTokenProvider().KeyVaultTokenCallback)),
                Vault = configReader["keyvaulturl"],
                Manager = new DefaultKeyVaultSecretManager()),
            }).Build();

            builder.Services.AddSingleton<IConfiguration>(config);
        }
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda