I have a Function App with 3 functions, one of them timer-triggered every 2 minutes. I observed that after a while, the function stops being triggered, but restarts when I go to the portal.
As I understand it, the reason is that by default, "Always On" is turned off. However, when I go to Application Settings / General Settings, I cannot activate the "On" state, which is grayed out. I can un-check "Off", which doesn't seem to stick or activate "On".
Am I missing something obvious? Is Always-On the solution to my problem, or is there something else I should do?
Note: the functions are written in F#; I doubt it matters, but I thought I would mention it just in case.
The Always On feature keeps your Azure web applications up and running, which translates to higher availability and faster response times across the board. The feature it's required for continuous Azure WebJobs or WebJobs triggered by CRON expressions.
Azure Functions are automatically woken up based on their triggers (e.g. timer, http). There is no requirement to do this manually.
Once your Function executed, it will stay 'warm' for the next 20 minutes or so, to execute subsequent requests.
Azure Functions can be used with Azure IoT Edge at no charge.
This answer applies to all Azure Function scenarios with the exception of those that are triggered by an http request.
There are 3 cases to look at:
Azure Functions are managed together by Azure App Service which restricts always on to modes that are Basic or above (no free or shared)
In Basic or Standard mode, you can enable Always On to keep the app loaded all the time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With