I have a schedule function trigger which supposes to run every 10 minutes. The CRON expression I am using is this: 0 */10 * * * *
The function runs every 10 minutes. However, sometimes it run late. For instance, the function suppose to run on 24 MAR, 07:30:00. But it ran on 24 MAR 08:44:30 instead. Another time it supposes to run at 24 MAR, 06:30:00. But ran at 24 MAR, 06:54:56
Usually, it runs correctly. Sometimes it does late for few seconds or a minute. But yesterday the gap was huge which caused many others error. From both the App Insights and Support section, I have discovered that it past due execution. Here is the screenshot from the support request section:
The last correct InvocationId: fbfb719c-42d8-4134-85aa-407d43163262(Run at 07:20:00 GMT, this is correct)
The next InvocationId: c5d78293-c1e8-42b2-9d4d-81612d4c8247(which ran at 08:44:31 GMT, this suppose to be run at 07:30:00 GMT)
correct InvocationId: d03fb73c-3a8d-410a-b6d6-bcde2662dcb4(Run at 06:20:00 GMT, this is correct)
The next InvocationId: d3d45712-811b-4102-8ee5-7704965b622e(which ran at 06:54:56 GMT, this suppose to be run at 06:30:00 GMT)
I also checked the Web App Restart detection section. Nothing was restarted. So I was wondering what could cause such an issue?
I am using Consumption Plan. I always deploy through VSCode. Have not set any WEBSITE_TIME_ZONE. Therefore using the UTC time zone I believe. Also, I am using Node.JS SDK.