You can create a TimerObject
to get a cron like a feature integration in place for function calls. You can define your new object as a JSON body such as one below:
{
"schedule": "*/5 * * * *",
"name": "myTimer",
"type": "timerTrigger",
"direction": "in"
}
This can then be plugged into the function body as:
module.exports = function (context, myTimer) {
var timeStamp = new Date().toISOString();
if (myTimer.IsPastDue)
{
context.log('Node is running late!');
}
context.log('Node timer trigger function ran!', timeStamp);
context.done();
};
More info available here from the official docs