Reputation: 395
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"
}
}
}
Upvotes: 2
Views: 1651
Reputation: 19812
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);
Upvotes: 3