简体   繁体   中英

Azure function timer trigger

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.

在此处输入图像描述

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.

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

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.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM