chore: rename setting
This commit is contained in:
parent
9cbc35c263
commit
514bca5257
@ -310,10 +310,10 @@ determineCrontab = execWriterT $ do
|
|||||||
return (nextEpoch, nextInterval, nextIntervalTime, numIntervals)
|
return (nextEpoch, nextInterval, nextIntervalTime, numIntervals)
|
||||||
|
|
||||||
if
|
if
|
||||||
| Just syncWithin <- appUserdbSyncWithin
|
| Just syncWithin <- appUserSyncWithin
|
||||||
, Just cInterval <- appJobCronInterval
|
, Just cInterval <- appJobCronInterval
|
||||||
-> do
|
-> do
|
||||||
nextIntervals <- getNextIntervals syncWithin appUserdbSyncInterval cInterval
|
nextIntervals <- getNextIntervals syncWithin appUserSyncInterval cInterval
|
||||||
|
|
||||||
forM_ nextIntervals $ \(nextEpoch, nextInterval, nextIntervalTime, numIntervals) -> do
|
forM_ nextIntervals $ \(nextEpoch, nextInterval, nextIntervalTime, numIntervals) -> do
|
||||||
tell $ HashMap.singleton
|
tell $ HashMap.singleton
|
||||||
@ -325,8 +325,8 @@ determineCrontab = execWriterT $ do
|
|||||||
Cron
|
Cron
|
||||||
{ cronInitial = CronTimestamp $ utcToLocalTimeTZ appTZ $ toTimeOfDay 23 30 0 $ utctDay nextIntervalTime
|
{ cronInitial = CronTimestamp $ utcToLocalTimeTZ appTZ $ toTimeOfDay 23 30 0 $ utctDay nextIntervalTime
|
||||||
, cronRepeat = CronRepeatNever
|
, cronRepeat = CronRepeatNever
|
||||||
, cronRateLimit = appUserdbSyncInterval
|
, cronRateLimit = appUserSyncInterval
|
||||||
, cronNotAfter = Right . CronTimestamp . utcToLocalTimeTZ appTZ $ addUTCTime appUserdbSyncInterval nextIntervalTime
|
, cronNotAfter = Right . CronTimestamp . utcToLocalTimeTZ appTZ $ addUTCTime appUserSyncInterval nextIntervalTime
|
||||||
}
|
}
|
||||||
| otherwise
|
| otherwise
|
||||||
-> return ()
|
-> return ()
|
||||||
|
|||||||
Reference in New Issue
Block a user