© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
2 replies
127001

Time Triggered Azure Function | NextStatus is same with current time

I have created my first TimerTrigger Azure Function . Which is built in template and run it to test locally.
[2024-03-28T17:02:00.016Z] Executing 'Functions.Function1' (Reason='Timer fired at 2024-03-28T19:02:00.0162712+02:00', Id=1aa0e694-47fa-44a1-9cde-e812190e4978)
[2024-03-28T17:02:00.025Z] C# Timer trigger function executed at: 28/03/2024 19:02:00
[2024-03-28T17:02:00.027Z] Next timer schedule at: 28/03/2024 19:02:00
[2024-03-28T17:02:00.032Z] Executed 'Functions.Function1' (Succeeded, Id=1aa0e694-47fa-44a1-9cde-e812190e4978, Duration=16ms)
I got this output. What I don't understand is why
Next timer schedule at: 28/03/2024 19:02:00
Next timer schedule at: 28/03/2024 19:02:00
is same with current one. Even though trigger is working every minute, there is no problem with that
[Function("Function1")]
public void Run([TimerTrigger("0 */1 * * * *")] TimerInfo myTimer)
{
    _logger.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
    
    if (myTimer.ScheduleStatus is not null)
    {
        _logger.LogInformation($"Next timer schedule at: {myTimer.ScheduleStatus.Next}");
    }
}
[Function("Function1")]
public void Run([TimerTrigger("0 */1 * * * *")] TimerInfo myTimer)
{
    _logger.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
    
    if (myTimer.ScheduleStatus is not null)
    {
        _logger.LogInformation($"Next timer schedule at: {myTimer.ScheduleStatus.Next}");
    }
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Azure Function Function Attribute Dynamic Value
C#CC# / help
3y ago
Azure function returning error
C#CC# / help
4y ago
✅ Blob Trigger Azure Function is not triggering
C#CC# / help
2y ago
✅ Trying to trigger Azure Function with OpenApi
C#CC# / help
3y ago