-
Notifications
You must be signed in to change notification settings - Fork 21.9k
Update functions-timeout-duration.md #120119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update functions-timeout-duration.md #120119
Conversation
|
@khelhanb-msft : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
|
Learn Build status updates of commit fdef09e: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
|
Learn Build status updates of commit 6ad4cf0: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
#label:"aq-pr-triaged" |
|
PR review team emailed author today |
|
I sent an email to the content owner on 01/12/2025. @MicrosoftDocs/public-repo-pr-review-team |
|
I sent an email to the content owner today. @MicrosoftDocs/public-repo-pr-review-team |
|
Can you review this old PR and determine whether it needs to be closed or merged? @MicrosoftDocs/public-repo-pr-review-team |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Clarifies the behavior when an Azure Function execution exceeds the configured timeout.
- Expands description to explain that a timeout causes a process (or worker) restart and terminates running invocations.
- Distinguishes behavior between out-of-process language workers and .NET in-process functions.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| ## <a name="timeout"></a>Function app timeout duration | ||
|
|
||
| The timeout duration for functions in a function app is defined by the `functionTimeout` property in the [host.json](../articles/azure-functions/functions-host-json.md#functiontimeout) project file. This property applies specifically to function executions. After the trigger starts function execution, the function needs to return/respond within the timeout duration. For more information, see [Improve Azure Functions performance and reliability](../articles/azure-functions/performance-reliability.md#make-sure-background-tasks-complete). | ||
| The timeout duration for functions in a function app is defined by the `functionTimeout` property in the [host.json](../articles/azure-functions/functions-host-json.md#functiontimeout) project file. This property applies specifically to function executions. After the trigger starts function execution, the function needs to return/respond within the timeout duration. If a single execution exceeds this duration, a timeout error will occur, leading to a process restart. In out-of-process languages (such as Node.js, Python, Java, PowerShell, or .NET isolated), the respective language worker process is restarted, thereby terminating any running invocations handled by the process. Similarly, for .NET in-process functions, the host process restarts, also terminating any active invocations. For more information, see [Improve Azure Functions performance and reliability](../articles/azure-functions/performance-reliability.md#make-sure-background-tasks-complete). |
Copilot
AI
Sep 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The explanation repeats the concept of process/worker restart and invocation termination twice, which could be made more concise and clearer. Consider restructuring: "If a single execution exceeds this duration, the invocation is aborted and the hosting process/worker is restarted (language worker for out-of-process: Node.js, Python, Java, PowerShell, .NET isolated; function host for .NET in-process), terminating any in-flight invocations."
| The timeout duration for functions in a function app is defined by the `functionTimeout` property in the [host.json](../articles/azure-functions/functions-host-json.md#functiontimeout) project file. This property applies specifically to function executions. After the trigger starts function execution, the function needs to return/respond within the timeout duration. If a single execution exceeds this duration, a timeout error will occur, leading to a process restart. In out-of-process languages (such as Node.js, Python, Java, PowerShell, or .NET isolated), the respective language worker process is restarted, thereby terminating any running invocations handled by the process. Similarly, for .NET in-process functions, the host process restarts, also terminating any active invocations. For more information, see [Improve Azure Functions performance and reliability](../articles/azure-functions/performance-reliability.md#make-sure-background-tasks-complete). | |
| The timeout duration for functions in a function app is defined by the `functionTimeout` property in the [host.json](../articles/azure-functions/functions-host-json.md#functiontimeout) project file. This property applies specifically to function executions. After the trigger starts function execution, the function needs to return/respond within the timeout duration. If a single execution exceeds this duration, the invocation is aborted and the hosting process/worker is restarted (language worker for out-of-process: Node.js, Python, Java, PowerShell, .NET isolated; function host for .NET in-process), terminating any in-flight invocations. For more information, see [Improve Azure Functions performance and reliability](../articles/azure-functions/performance-reliability.md#make-sure-background-tasks-complete). |
| ## <a name="timeout"></a>Function app timeout duration | ||
|
|
||
| The timeout duration for functions in a function app is defined by the `functionTimeout` property in the [host.json](../articles/azure-functions/functions-host-json.md#functiontimeout) project file. This property applies specifically to function executions. After the trigger starts function execution, the function needs to return/respond within the timeout duration. For more information, see [Improve Azure Functions performance and reliability](../articles/azure-functions/performance-reliability.md#make-sure-background-tasks-complete). | ||
| The timeout duration for functions in a function app is defined by the `functionTimeout` property in the [host.json](../articles/azure-functions/functions-host-json.md#functiontimeout) project file. This property applies specifically to function executions. After the trigger starts function execution, the function needs to return/respond within the timeout duration. If a single execution exceeds this duration, a timeout error will occur, leading to a process restart. In out-of-process languages (such as Node.js, Python, Java, PowerShell, or .NET isolated), the respective language worker process is restarted, thereby terminating any running invocations handled by the process. Similarly, for .NET in-process functions, the host process restarts, also terminating any active invocations. For more information, see [Improve Azure Functions performance and reliability](../articles/azure-functions/performance-reliability.md#make-sure-background-tasks-complete). |
Copilot
AI
Sep 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a trailing space at the end of the line; removing trailing whitespace helps keep diffs clean. Please trim the trailing space after the final period.
| The timeout duration for functions in a function app is defined by the `functionTimeout` property in the [host.json](../articles/azure-functions/functions-host-json.md#functiontimeout) project file. This property applies specifically to function executions. After the trigger starts function execution, the function needs to return/respond within the timeout duration. If a single execution exceeds this duration, a timeout error will occur, leading to a process restart. In out-of-process languages (such as Node.js, Python, Java, PowerShell, or .NET isolated), the respective language worker process is restarted, thereby terminating any running invocations handled by the process. Similarly, for .NET in-process functions, the host process restarts, also terminating any active invocations. For more information, see [Improve Azure Functions performance and reliability](../articles/azure-functions/performance-reliability.md#make-sure-background-tasks-complete). | |
| The timeout duration for functions in a function app is defined by the `functionTimeout` property in the [host.json](../articles/azure-functions/functions-host-json.md#functiontimeout) project file. This property applies specifically to function executions. After the trigger starts function execution, the function needs to return/respond within the timeout duration. If a single execution exceeds this duration, a timeout error will occur, leading to a process restart. In out-of-process languages (such as Node.js, Python, Java, PowerShell, or .NET isolated), the respective language worker process is restarted, thereby terminating any running invocations handled by the process. Similarly, for .NET in-process functions, the host process restarts, also terminating any active invocations. For more information, see [Improve Azure Functions performance and reliability](../articles/azure-functions/performance-reliability.md#make-sure-background-tasks-complete). |
Submitted via Learn Editor.