Hi Team,
We have upgraded the azure function to isolated process model and to .net 8.
Below is the time trigger implementation,
[Function("ActivityTrigger")]
public async Task Run([TimerTrigger("%ActivityTriggerTime%")] TimerInfo timer, FunctionContext context)
{
_logger.LogInformation("------------- activity trigger started");
_logger.LogInformation("------------- next run time {NextRunTime}", nameof(ActivityTrigger
), timer?.ScheduleStatus?.Next);
}
Below is the cron expression we used,
"ActivityTriggerTime": "* */2 * * * *"
= > Trigger should be triggered every 2 minutes or 30 seconds.
But the next schedule run time is not getting logged correctly for every trigger.
ActivityTrigger next run time 08/09/2024 19:24:36
What is the correct cron format for providing the trigger time and it should log the next schedule status time.