App service plan requirements for time trigger function

Boop444 25 Reputation points
2023-11-09T20:55:57.9166667+00:00

Hi all, I have created an Azure Function App on an App Service Plan in order to increase the function running time for my Time Trigger python script function (my code takes around 30 mins to run on my computer, and was timing out when it used to be a http trigger). It is set to run once a day. It's currently on pricing plan B1. I'm wondering if I can switch to F1 though and not lose the unlimited timeout length? I don't really understand the costs so am worried about them blowing out on B1, since it seems to be using memory and CPU even when my time trigger function isn't running.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,520 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,223 questions
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 30,556 Reputation points MVP
    2023-11-09T21:33:01.48+00:00

    Hello @Boop444,

    welcome to this moderated Azure community forum.

    Azure functions run for a maximum of 5 minutes by default or for 10 minutes if you manipulate the settings, depending on the kind of app plan.

    This is to protect users from the costs because the price of functions is based on the duration (amongst others) for a consumption plan.

    The F1 app plan offloads the function from memory after not being called for 20 minutes. The same goes for other plans without the 'always on' setting. If you call it once per day, you will have to wait until the function app is started again, before execution.

    I recommend pumping up the 'functionTimeout' setting to 45 minutes, just to be sure and just testing your application on the F1 and watching the logging to see what happens.


    This answer is written by myself, not by some AI. If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


0 additional answers

Sort by: Most helpful