1

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

enter image description here

1 Answer 1

0

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.