Azure / azure-functions-host

The host/runtime that powers Azure Functions
https://functions.azure.com
MIT License
1.94k stars 441 forks source link

Timer-Triggered Functions Suddenly Stopped Triggering #8792

Open BrunoJuchli opened 2 years ago

BrunoJuchli commented 2 years ago

Investigative information

Repro steps

This has happened out of of the blue after running the app for about 31 hours since last deployment. Before, the app ran without issue for months (deployments were dependency updates only).

Therefore, I'm not sure what the steps to reproduce are. I'll give an overview of the application instead:

There's a total of 120 timer triggered functions:

Zaptec

The Zaptec-StartImportPartition* functions are intended to be run every 15 minutes each. There's 60 functions which have a 15 seconds offset from each other. That is, every 15 seconds one of the Zaptec* functions should be run, starting with Zaptec-StartImportPartition0, then Zaptec-StartImportPartition1 after 15 seconds and so on.

All these functions do is using IDurableOrchestrationClient to StartNewAsync another function called Zaptec-PartitionImportOrchestrationFunction passing in the partition number (The * in the name of the timer triggered `Zaptec-StartImportPartition* function). This function then does the actual work.

Easee

The Easee-StartImportPartition* functions work similarly to the Zaptec once with the difference that there are 60 functions run once every hour with a 1 minute offset from each other.

Expected behavior

The timer triggered functions should continue to be executed periodically.

Actual behavior

All timer triggered functions of the function app have stopped executing after 2022-09-27T13:55:45.1227038Z Function execution count: image

Known workarounds

Possibly restarting the function app. (I didn't to it because I thought someone might want to investigate first. This happened on our test system so we do have time to investigate further).

Related information

ramya894 commented 2 years ago

@BrunoJuchli We are investigating this issue and let you know the findings soon.

kashimiz commented 2 years ago

Bringing this up with the product group for discussion/investigation; will update.

BrunoJuchli commented 2 years ago

Note that on September 29th between 1:15 and 1:45 UTC the timer triggered functions have re-started to execute without any action from our side. (we have automated deployments triggered by Dependabot, but this has only run on October 3rd and not on September 29th).