2
votes

With below mentioned host.json, we see that function timeout is set to default of 30 mins. Some of our workflows run beyond 30 mins. This was working in runtime ~2. Also by checking the logs from host startup, there is no way to see the timeout value picked by the runtime. Is it logged ?

{
"version": "2.0",
"functionTimeout": "02:00:00",
"logging": {
"logLevel": {
"Default": "Debug"
}
}
}
1
could you please accept it as answer(click on the check mark beside my answer to toggle it from greyed out to filled in). Thanks in advance~ - Frank Gong

1 Answers

2
votes

The host.json is correct, the version is just for the schema.

I just had a similar issue, and it turns out registering IConfiguration as a singleton re-instates the default values.

So do not do this in Startup.cs:

builder.Services.AddSingleton<IConfiguration>(config);