diff options
author | Tom Ritter <tom@ritter.vg> | 2017-02-06 09:18:57 -0600 |
---|---|---|
committer | Tom Ritter <tom@ritter.vg> | 2017-02-06 09:18:57 -0600 |
commit | bc6b74e8d402946afcf5794634e1601ef21a4ba5 (patch) | |
tree | e7e5ffa11b71bb71d44bedcd881dea62f8f1f45f | |
parent | 8eae75fa67cd3febea1692f186fa179c9d5b19c4 (diff) |
Give a day notification a little widdle room
-rwxr-xr-x | jobs/JobBase.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |