Source:
public void configure() { if (tasksEnabled) { scheduler.schedule( nitroScheduleUpdateTask( 7, 7, nitroFortnightThreadCount, nitroFortnightRateLimit, Optional.absent(), "Nitro 15 day updater", OwlTelescopeReporters.BBC_NITRO_INGEST_M7_7_DAY ), RepetitionRules.NEVER ); scheduler.schedule( nitroScheduleUpdateTask( 0, 0, nitroTodayThreadCount, nitroTodayRateLimit, Optional.absent(), "Nitro today updater", OwlTelescopeReporters.BBC_NITRO_INGEST_TODAY ), RepetitionRules.every(Duration.standardMinutes(30)) ); scheduler.schedule( nitroScheduleUpdateTask( 0, 0, nitroTodayThreadCount, nitroTodayRateLimit, Optional.of(Predicates.alwaysTrue()), "Nitro full fetch today updater", OwlTelescopeReporters.BBC_NITRO_INGEST_TODAY_FULL_FETCH ), RepetitionRules.NEVER ); scheduler.schedule( nitroScheduleUpdateTask( 30, -8, nitroThreeWeekThreadCount, nitroThreeWeekRateLimit, Optional.of(Predicates.alwaysTrue()), "Nitro full fetch -8 to -30 day updater", OwlTelescopeReporters.BBC_NITRO_INGEST_M8_M30_FULL_FETCH ), RepetitionRules.NEVER ); scheduler.schedule( nitroScheduleUpdateTask( 7, 3, nitroAroundTodayThreadCount, nitroAroundTodayRateLimit, Optional.of(Predicates.alwaysTrue()), "Nitro full fetch -7 to +3 day updater", OwlTelescopeReporters.BBC_NITRO_INGEST_M7_3_FULL_FETCH ), RepetitionRules.NEVER ); scheduler.schedule( channelIngestTask().withName("Nitro channel updater"), RepetitionRules.weekly( DayOfWeek.MONDAY, LocalTime.MIDNIGHT) ); } if (offScheduleIngestEnabled) { scheduler.schedule( nitroOffScheduleIngestTask().withName("Nitro off-schedule content updater"), RepetitionRules.NEVER ); } }

Target:
public void configure() { if (tasksEnabled) { scheduler.schedule( nitroScheduleUpdateTask( 7, 7, nitroFortnightThreadCount, nitroFortnightRateLimit, Optional.absent(), "Nitro 15 day updater", OwlTelescopeReporters.BBC_NITRO_INGEST_M7_7_DAY ), RepetitionRules.every(Duration.standardHours(2)) ); scheduler.schedule( nitroScheduleUpdateTask( 0, 0, nitroTodayThreadCount, nitroTodayRateLimit, Optional.absent(), "Nitro today updater", OwlTelescopeReporters.BBC_NITRO_INGEST_TODAY ), RepetitionRules.every(Duration.standardMinutes(30)) ); scheduler.schedule( nitroScheduleUpdateTask( 0, 0, nitroTodayThreadCount, nitroTodayRateLimit, Optional.of(Predicates.alwaysTrue()), "Nitro full fetch today updater", OwlTelescopeReporters.BBC_NITRO_INGEST_TODAY_FULL_FETCH ), RepetitionRules.NEVER ); scheduler.schedule( nitroScheduleUpdateTask( 30, -8, nitroThreeWeekThreadCount, nitroThreeWeekRateLimit, Optional.of(Predicates.alwaysTrue()), "Nitro full fetch -8 to -30 day updater", OwlTelescopeReporters.BBC_NITRO_INGEST_M8_M30_FULL_FETCH ), RepetitionRules.every(Duration.standardHours(12)) ); scheduler.schedule( nitroScheduleUpdateTask( 7, 3, nitroAroundTodayThreadCount, nitroAroundTodayRateLimit, Optional.of(Predicates.alwaysTrue()), "Nitro full fetch -7 to +3 day updater", OwlTelescopeReporters.BBC_NITRO_INGEST_M7_3_FULL_FETCH ), RepetitionRules.every(Duration.standardHours(2)) ); scheduler.schedule( channelIngestTask().withName("Nitro channel updater"), RepetitionRules.weekly( DayOfWeek.MONDAY, LocalTime.MIDNIGHT) ); } if (offScheduleIngestEnabled) { scheduler.schedule( nitroOffScheduleIngestTask().withName("Nitro off-schedule content updater"), RepetitionRules.every(Duration.standardHours(3)) ); } }