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 g
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.
You can do a small hack if you're in free/shared app service plan & it works perfectly. Use the pinging service like freshping.io that pings your function url every 5 secs/custom interval which prevents your app from being idle. Freshping.io gives you 5 free urls to ping.
Note: pinging url doesn't count towards the CPU run time, unless you ping the actual function. So it doesn't affect your time limit.
Hope this helps.