azure function apps with timer: do they wait until the previous one is finished

javier cohenar 211 Reputation points
2023-07-13T01:10:35.8833333+00:00

I plan to deploy a function that is executed every 60 seconds. However I estimate the processing done by the function could take in some cases a bit more (say 80 seconds).

Since the processing might not be finished when the next function run should start I wonder whether the second run will wait until the first one finishes or it may be executed in parallel.

if the runs could overlap, how can I change the configuration of the function app in order to avoid this situation without changing the trigger being executed every 60secs?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
{count} votes

Accepted answer
  1. Sander van de Velde | MVP 36,761 Reputation points MVP Volunteer Moderator
    2023-07-13T11:38:24.7633333+00:00

    Hello

    having multiple timer triggers can result in unpredictable behavior when the execution time exceeds the interval.

    See this blog post with a more elaborate background story.

    I suggest working with a single time triggered Azure function which distributes takes to be picked up by other functions.


    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.