You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add warmup trigger
* Additional changes to types
* Add back trigger property
* Minor changes to docs, types, signatures
* Revert a few minor edits
* PR review suggestions
* Add interface for warmupContext
* If the host spawns multiple workers, it expects the metadata (including binding name) to be the same accross workers
10
+
* If the host spawns multiple workers, it expects the metadata (including binding name) to be the same across workers.
11
11
* That means we need to generate binding names in a deterministic fashion, so we'll do that using a count
12
12
* There's a tiny risk users register bindings in a non-deterministic order (i.e. async race conditions), but it's okay considering the following:
13
13
* 1. We will track the count individually for each binding type. This makes the names more readable and reduces the chances a race condition will matter
* Registers a function in your app that will be triggered when an instance is added to scale a running function app.
149
+
* The warmup trigger is only called during scale-out operations, not during restarts or other non-scale startups.
150
+
* Make sure your logic can load all required dependencies without relying on the warmup trigger.
151
+
* Lazy loading is a good pattern to achieve this goal.
152
+
* The warmup trigger isn't available to apps running on the Consumption plan.
153
+
* For more information, please see the [Azure Functions warmup trigger documentation](https://learn.microsoft.com/azure/azure-functions/functions-bindings-warmup?tabs=isolated-process&pivots=programming-language-javascript).
154
+
* @param name The name of the function. The name must be unique within your app and will mostly be used for your own tracking purposes
155
+
* @param options Configuration options describing the inputs, outputs, and handler for this function
* [Link to docs and examples](https://docs.microsoft.com/azure/azure-functions/functions-bindings-http-webhook-trigger?&pivots=programming-language-javascript)
@@ -66,6 +67,11 @@ export function eventGrid(options: EventGridTriggerOptions): EventGridTrigger;
* [Link to docs and examples](https://learn.microsoft.com/azure/azure-functions/functions-bindings-warmup?tabs=isolated-process&pivots=programming-language-javascript)
0 commit comments