diff --git a/src/app/VMStartStop/TagManager/API/TagManagerTimeTrigger.cs b/src/app/VMStartStop/TagManager/API/TagManagerTimeTrigger.cs index 7ac9fe9..986d0ba 100644 --- a/src/app/VMStartStop/TagManager/API/TagManagerTimeTrigger.cs +++ b/src/app/VMStartStop/TagManager/API/TagManagerTimeTrigger.cs @@ -25,6 +25,12 @@ public string _logger.LogInformation($"Log triggered at: {myTimer.ScheduleStatus.Last}"); + if (myTimer.IsPastDue) + { + _logger.LogInformation("Timer is running late!"); + return null; + } + if (DateTime.Compare(myTimer.ScheduleStatus.Last, DateTime.Now.AddMinutes(-15)) < 0) { _logger.LogInformation($"Trigger is too late: triggered at: {myTimer.ScheduleStatus.Last}; processing time: {processingTime}");