Wednesday, October 21, 2020

Using TimerInfo object in Timer Functions

 TimerInfo object can be used to various purposes in a Timer Function. There are three main properties that can be used to make the logic. 


IsPastDue 

As I mentioned in the previous article this can be determined to know whether this function was scheduled to run previously. Depending on this you can decide to make certain actions. 

Debugging Azure Timer Functions

Azure Timer Functions are great way to run your scheduled jobs and may be process data, or send a summary email likewise. One of the questions I received during a session was how do we trigger them when testing. This can be done in two ways. 

1. Set Cron Expression to pick up the next minute

If you set the following Cron expression, it will trigger on exact same minute. In this example, on 42nd minute. So whenever you debug you can set the next minute or two and then let it trigger and debug them.