From 0331010ad761ddf24c6589245f4641694d1ad0bb Mon Sep 17 00:00:00 2001 From: David Mosbach Date: Sat, 11 Nov 2023 03:41:31 +0000 Subject: [PATCH] fix(crontab):increased cronNotAfter for lms jobs --- src/Jobs/Crontab.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jobs/Crontab.hs b/src/Jobs/Crontab.hs index 8d782e0d7..a115c8c88 100644 --- a/src/Jobs/Crontab.hs +++ b/src/Jobs/Crontab.hs @@ -402,7 +402,7 @@ determineCrontab = execWriterT $ do , cronSecond = cronMatchOne 27 } , cronRateLimit = nominalDay / 2 -- minimal time between two executions, before the second job is skipped - , cronNotAfter = Left nominalDay -- maximal delay of an execution, before it is skipped entirely + , cronNotAfter = Left $ 1.5 * nominalDay -- maximal delay of an execution, before it is skipped entirely } whenIsJust appQualificationCheckHour $ \hour -> tell $ HashMap.singleton @@ -415,7 +415,7 @@ determineCrontab = execWriterT $ do , cronSecond = cronMatchOne 27 } , cronRateLimit = nominalDay / 2 -- minimal time between two executions, before the second job is skipped - , cronNotAfter = Left nominalDay -- maximal delay of an execution, before it is skipped entirely + , cronNotAfter = Left $ 1.5 * nominalDay -- maximal delay of an execution, before it is skipped entirely } let