My function app is a timer triggered app and uses this cron expression for scheduling. 10 */6 * * * On most days it runs fine, but looking at the trace logs in Application insights it does not run for every 6 hours some days. Here is an example where it did not Trying to find an explanation. Where do I look? Checked app insights for the function app
Add a comment
|
1 Answer
Azure Functions doesn't actually use CRON expressions, but rather, NCRON expressions.
Instead of the typical 5 elements from a CRON expression, NCRON expects 6 elements: {second} {minute} {hour} {day} {month} {day-of-week}
I ran into similar issues in the past where execution sometimes worked, and sometimes didn't when using the 5 element expression instead of the required 6 element version.
You can find documentation regarding NCRON usage here.
