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