Gautam Parmar
Gautam Parmar

Reputation: 485

Timeout attribute in azure function isolated 6.0

Recently I have moved my azure function from 3.0 to 6.0 Isolated, Everything works well only Timeout attribute which we are using right now Microsoft.Azure.WebJobs.TimeoutAttribute

My code is looks like right now

[Timeout("-1")]
[Function("FunctionName")]
public async Task Run([BlobTrigger("blob-name/{name}", Connection = "AzureWebJobsStorage")] byte[] myBlob, string name)
{
    try
    {
        

    }
    catch (Exception ex)
    {
        
    }
}

Timeout currently not working with Isolated 6.0 which was working previously with 3.0, Is there any different package that should be used to make it work?

Note - I am already using premium plan for the azure function so it should at least work beyond 30 min.

Upvotes: 2

Views: 1878

Answers (1)

Gautam Parmar
Gautam Parmar

Reputation: 485

As per the answer from @HariKrishnaRajoli (github.com/Azure/Azure-Functions/issues/1900) functionTimeout Added into host.json fixed issue.

Upvotes: 0

Related Questions