Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
642 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 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...