From bc6b74e8d402946afcf5794634e1601ef21a4ba5 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Mon, 6 Feb 2017 09:18:57 -0600 Subject: Give a day notification a little widdle room --- jobs/JobBase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/JobBase.py b/jobs/JobBase.py index 1882443..7658a37 100755 --- a/jobs/JobBase.py +++ b/jobs/JobBase.py @@ -82,7 +82,7 @@ class JobBase(object): elif notifyFrequency == JobFailureNotificationFrequency.EVERYDAY: now = time.time() lastNotify = jobState.LastNotifyTime - if datetime.timedelta(seconds=(now - lastNotify)) > datetime.timedelta(hours=24, minutes=0, seconds=0): + if datetime.timedelta(seconds=(now - lastNotify)) > datetime.timedelta(hours=23, minutes=50, seconds=0): return True return False elif notifyFrequency == JobFailureNotificationFrequency.ONSTATECHANGE: -- cgit v1.2.3