Skip to content

Commit 0b34575

Browse files
authored
Merge pull request #127848 from ffarinha-msft/patch-12
functionTimeout adding format examples
2 parents c8402ae + 205ad1a commit 0b34575

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](/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+
> When you need to set a 24-hour timeout, you must define it as one day (`"1.00:00:00"`) instead of 24 hours (`"24:00:00"`). You might also use `"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)