Scheduler notification

I have a scheduler whcih runs four times a day with 2 hours interval.
I have to send a notification only when the fourth attempt for a particular condition fails in the service.

So Is there any way to know the number of times the scheduler has run in a particular day so that I can send the notification only in the fourth time execution of the service.

Please help me as soon as possible…

Build a custom wrapper service that tracks the number of invokes per day and number of failures and you can customize the alerting based on need

I am not aware of any in-built functionality.
HTH
Bhavani Shankar