Description
Currently in FeedRetentionCoordinatorBuilder, timeUnit is used to determine frequency of the retention coordinator.
TimeUnit timeUnit = entity.getFrequency().getTimeUnit(); if (timeUnit == TimeUnit.hours || timeUnit == TimeUnit.minutes) { coord.setFrequency("${coord:hours(6)}"); } else { coord.setFrequency("${coord:days(1)}"); }
days(2) can be mapped to hours(48). If user uses hours(48) then retention coordinator runs every 6 hours instead of running daily wasting the compute resources. Instead get the time duration and use that to determine the retention job frequency.
Also fix it in FalconUnitTestBase.