From 4c19fa0d057697658780e2bd28de379261676836 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 28 Nov 2020 16:57:50 -0500 Subject: [PATCH] Fixed: Schedule task should reflect Backup Interval change --- src/NzbDrone.Core/Jobs/TaskManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Jobs/TaskManager.cs b/src/NzbDrone.Core/Jobs/TaskManager.cs index 2e46480b7..c49d5899f 100644 --- a/src/NzbDrone.Core/Jobs/TaskManager.cs +++ b/src/NzbDrone.Core/Jobs/TaskManager.cs @@ -172,10 +172,13 @@ namespace NzbDrone.Core.Jobs var importList = _scheduledTaskRepository.GetDefinition(typeof(ImportListSyncCommand)); importList.Interval = GetImportListSyncInterval(); + var backup = _scheduledTaskRepository.GetDefinition(typeof(BackupCommand)); + backup.Interval = GetBackupInterval(); + var refreshMonitoredDownloads = _scheduledTaskRepository.GetDefinition(typeof(RefreshMonitoredDownloadsCommand)); refreshMonitoredDownloads.Interval = _configService.CheckForFinishedDownloadInterval; - _scheduledTaskRepository.UpdateMany(new List { rss, importList, refreshMonitoredDownloads }); + _scheduledTaskRepository.UpdateMany(new List { rss, importList, refreshMonitoredDownloads, backup }); } } }