Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
640 views
in Technique[技术] by (71.8m points)

timer trigger - Azure Search like scheduling for Azure Function

Azure Search offers functionality to set up a Start DateTime and Interval (in mins) to schedule Indexer runs. Is there any way we can implement a similar configuration in Azure Function with Timer Trigger to start at a particular DateTime and then after at every interval?

question from:https://stackoverflow.com/questions/65903932/azure-search-like-scheduling-for-azure-function

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Unfortunately, Azure timer trigger function cannot set Start Time. The timer trigger runs from the current time and executes the function according to the cycle specified by the NCRONTAB expressions.

Solution:

Maybe you can use Azure logic app to solve your problem, but in this solution, you need to use Http trigger function.

First, you need to use the Recurrence trigger, this timer can specify the time to start running, and then you can specify the time interval by changing the Frequency; then you need to use the Function connector to call your Function.

Note:

To be able to be called by Azure logic app, you need to use http trigger.

Please refer to my azure logic app:

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...