Skip to content

Commit 4da9f17

Browse files
committed
Acrolinx suggestions
1 parent a437fec commit 4da9f17

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

articles/azure-functions/functions-bindings-warmup.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ zone_pivot_groups: programming-languages-set-functions
1212

1313
# Azure Functions warmup trigger
1414

15-
This article explains how to work with the warmup trigger in Azure Functions. A warmup trigger is invoked when an instance is added to scale a running function app. The warmup trigger lets you define a function that's run when a new instance of your function app is started. You can use a warmup trigger to pre-load custom dependencies during the pre-warming process so your functions are ready to start processing requests immediately. Some actions for a warmup trigger might include opening connections, loading dependencies, or running any other custom logic before your app begins receiving traffic.
15+
This article explains how to work with the warmup trigger in Azure Functions. A warmup trigger is invoked when an instance is added to scale a running function app. The warmup trigger lets you define a function that runs when a new instance of your function app is started. You can use a warmup trigger to preload custom dependencies so your functions are ready to start processing requests immediately. Some actions for a warmup trigger might include opening connections, loading dependencies, or running any other custom logic before your app begins receiving traffic.
1616

1717
The following considerations apply when using a warmup trigger:
1818

1919
* The warmup trigger isn't available to apps running on the [Consumption plan](./consumption-plan.md).
2020
* The warmup trigger isn't supported on version 1.x of the Functions runtime.
2121
* Support for the warmup trigger is provided by default in all development environments. You don't have to manually install the package or register the extension.
2222
* There can be only one warmup trigger function per function app, and it can't be invoked after the instance is already running.
23-
* The warmup trigger is only called during scale-out operations, not during restarts or other non-scale startups. Make sure your logic can load all required dependencies without relying on the warmup trigger. Lazy loading is a good pattern to achieve this goal.
23+
* The warmup trigger is only called during scale-out operations, not during restarts or other nonscaling startups. Make sure your logic can load all required dependencies without relying on the warmup trigger. Lazy loading is a good pattern to achieve this goal.
2424
* Dependencies created by warmup trigger should be shared with other functions in your app. To learn more, see [Static clients](manage-connections.md#static-clients).
2525
* If the [built-in authentication](../app-service/overview-authentication-authorization.md) (aka Easy Auth) is used, [HTTPS Only](../app-service/configure-ssl-bindings.md#enforce-https) should be enabled for the warmup trigger to get invoked.
2626

@@ -34,13 +34,13 @@ The following considerations apply when using a warmup trigger:
3434

3535
# [Isolated worker model](#tab/isolated-process)
3636

37-
The following example shows a [C# function](dotnet-isolated-process-guide.md) that runs on each new instance when it's added to your app.
37+
The following example shows a [C# function](dotnet-isolated-process-guide.md) that runs on each new instance when added to your app.
3838

3939
:::code language="csharp" source="~/azure-functions-dotnet-worker/samples/Extensions/Warmup/Warmup.cs" range="4-18":::
4040

4141
# [In-process model](#tab/in-process)
4242

43-
The following example shows a [C# function](functions-dotnet-class-library.md) that runs on each new instance when it's added to your app.
43+
The following example shows a [C# function](functions-dotnet-class-library.md) that runs on each new instance when added to your app.
4444

4545
```cs
4646
using Microsoft.Azure.WebJobs;
@@ -84,7 +84,7 @@ public void warmup( @WarmupTrigger Object warmupContext, ExecutionContext contex
8484

8585
# [Model v4](#tab/nodejs-v4)
8686

87-
The following example shows a warmup trigger [JavaScript function](functions-reference-node.md) that runs on each new instance when it's added to your app.
87+
The following example shows a warmup trigger [JavaScript function](functions-reference-node.md) that runs on each new instance when added to your app.
8888

8989
```javascript
9090
import { app } from "@azure/functions";
@@ -98,7 +98,7 @@ app.warmup('warmupTrigger1', {
9898

9999
# [Model v3](#tab/nodejs-v3)
100100

101-
The following example shows a warmup trigger in a *function.json* file and a [JavaScript function](functions-reference-node.md) that runs on each new instance when it's added to your app.
101+
The following example shows a warmup trigger in a *function.json* file and a [JavaScript function](functions-reference-node.md) that runs on each new instance when added to your app.
102102

103103
Here's the *function.json* file:
104104

@@ -128,7 +128,7 @@ module.exports = async function (warmupContext, context) {
128128
::: zone pivot="programming-language-typescript"
129129
# [Model v4](#tab/nodejs-v4)
130130

131-
The following example shows a warmup trigger [JavaScript function](functions-reference-node.md) that runs on each new instance when it's added to your app.
131+
The following example shows a warmup trigger [JavaScript function](functions-reference-node.md) that runs on each new instance when added to your app.
132132

133133
```TypeScript
134134
import { app, InvocationContext, WarmupContextOptions } from "@azure/functions";
@@ -218,15 +218,15 @@ Use the `WarmupTrigger` attribute to define the function. This attribute has no
218218
::: zone pivot="programming-language-java"
219219
## Annotations
220220

221-
Annotations aren't required by a warmup trigger. Just use a name of `warmup` (case-insensitive) for the `FunctionName` annotation.
221+
Warmup triggers do not require annotations. Just use a name of `warmup` (case-insensitive) for the `FunctionName` annotation.
222222

223223
::: zone-end
224224
::: zone pivot="programming-language-javascript,programming-language-typescript"
225225
## Configuration
226226

227227
# [Model v4](#tab/nodejs-v4)
228228

229-
There are no additional properties that need to be set on the `options` object passed to the `app.warmup()` method.
229+
There are no properties that need to be set on the `options` object passed to the `app.warmup()` method.
230230

231231
# [Model v3](#tab/nodejs-v3)
232232

@@ -281,7 +281,7 @@ Your function must be named `warmup` (case-insensitive) using the `FunctionName`
281281
::: zone-end
282282
::: zone pivot="programming-language-javascript,programming-language-typescript"
283283
# [Model v4](#tab/nodejs-v4)
284-
Please see the list of considerations at the top of the page for general usage advice.
284+
See the list of considerations at the top of the page for general usage advice.
285285
# [Model v3](#tab/nodejs-v3)
286286
The function type in _function.json_ must be set to `warmupTrigger`.
287287
::: zone-end

0 commit comments

Comments
 (0)