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.
As per the answer from @HariKrishnaRajoli (github.com/Azure/Azure-Functions/issues/1900) functionTimeout Added into host.json fixed issue.