From 22e9dff76b3dead219f19750578f0b5531f03f26 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 3 Oct 2020 23:49:06 -0400 Subject: [PATCH] Don't check for updates every 30 minutes on nightly --- src/NzbDrone.Core/Jobs/TaskManager.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/NzbDrone.Core/Jobs/TaskManager.cs b/src/NzbDrone.Core/Jobs/TaskManager.cs index fe25848507..6c651acf1b 100644 --- a/src/NzbDrone.Core/Jobs/TaskManager.cs +++ b/src/NzbDrone.Core/Jobs/TaskManager.cs @@ -61,19 +61,10 @@ public DateTime GetNextExecution(Type type) public void Handle(ApplicationStartedEvent message) { - int updateInterval = 6 * 60; - - if (_configFileProvider.Branch == "nightly") - { - updateInterval = 30; - } - var defaultTasks = new[] { new ScheduledTask { Interval = 5, TypeName = typeof(MessagingCleanupCommand).FullName }, - new ScheduledTask { Interval = updateInterval, TypeName = typeof(ApplicationCheckUpdateCommand).FullName }, - - // new ScheduledTask { Interval = 3 * 60, TypeName = typeof(UpdateSceneMappingCommand).FullName }, + new ScheduledTask { Interval = 6 * 60, TypeName = typeof(ApplicationCheckUpdateCommand).FullName }, new ScheduledTask { Interval = 6 * 60, TypeName = typeof(CheckHealthCommand).FullName }, new ScheduledTask { Interval = 24 * 60, TypeName = typeof(RefreshMovieCommand).FullName }, new ScheduledTask { Interval = 24 * 60, TypeName = typeof(HousekeepingCommand).FullName },