1

I’m trying to create timer trigger function in the portal following this tutorial:timer trigger. I try to set the Schedule to 0 */30 * * * *, every 30 minutes run a time.

enter image description here

However after i create it, I could only see one running record,all others is no new trace in the past. I want to know if I did something wrong, hope some guy could help me.

1
  • CRON tester can help you test your syntax. This is your CRON in the tester. It says it cannot be parsed Test Link Commented Apr 16, 2020 at 16:37

2 Answers 2

1

it's a NCRONTAB expression

An NCRONTAB expression is similar to a CRON expression except that it includes an additional sixth field at the beginning to use for time precision in seconds:

{second} {minute} {hour} {day} {month} {day-of-week}

to run it every 30 minute you should write "*/30 * * * *" (remove the zero in the beginning)

you can find more informations in the Microsoft Docs

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

1 Comment

I check the ms doc, there is a sample runs once every 5 minutes with 0 */5 * * * * , so i guess my cron is not the problem.
0

I suppose your cron expression should work and you have said you could see one record, so mostly it's the portal log problem.

The log window is a bit fragile and doesn't always show the logs. However, the log will be written to the Kudu file. To check the log you could go your function Kudu site, Debug console > CMD then go into LogFiles > Application > Functions > Function > Function Name.

There you see your function log.

It will be like the below picture.

enter image description here

2 Comments

I will check the kudu site.
You are right, i could find the running history in the log file. However is ther any way to check the log in the portal?

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.