Skip to content

Commit 09735a4

Browse files
functionTimeout adding format examples
Added detailed explanation for functionTimeout format and usage.
1 parent be54004 commit 09735a4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

articles/azure-functions/functions-host-json.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,21 @@ A list of functions that the job host runs. An empty array means run all functio
325325

326326
## functionTimeout
327327

328-
Indicates the timeout duration for all function executions. It follows the timespan string format. A value of `-1` indicates unbounded execution, but keeping a fixed upper bound is recommended.
328+
Indicates the timeout duration for all function executions. It follows the [timespan string format](https://learn.microsoft.com/en-us/dotnet/fundamentals/runtime-libraries/system-timespan-parse). A value of `-1` indicates unbounded execution, but keeping a fixed upper bound is recommended.
329329

330330
```json
331331
{
332332
"functionTimeout": "00:05:00"
333333
}
334334
```
335+
The format of the timespan string needs to follow the syntax `[d.]hh:mm:ss` and the valid values are:
336+
- d = days (optional)
337+
- hh = hours (0–23)
338+
- mm = minutes (0-59)
339+
- ss = seconds (0-59)
340+
341+
> [!TIP]
342+
> If you want to set a 24 hours timeout you cannot define it as `"24:00:00"` instead you need to use `"1.00:00:00"` or `"23:59:59"`
335343
336344
For more information on the default and maximum values for specific plans, see [Function app timeout duration](./functions-scale.md#timeout).
337345

0 commit comments

Comments
 (0)