mirror of
https://github.com/Radarr/Radarr
synced 2026-05-08 22:06:23 +02:00
Fixed: Schedule task should reflect Backup Interval change
This commit is contained in:
parent
7cd29c48bb
commit
4c19fa0d05
1 changed files with 4 additions and 1 deletions
|
|
@ -172,10 +172,13 @@ public void HandleAsync(ConfigSavedEvent message)
|
||||||
var importList = _scheduledTaskRepository.GetDefinition(typeof(ImportListSyncCommand));
|
var importList = _scheduledTaskRepository.GetDefinition(typeof(ImportListSyncCommand));
|
||||||
importList.Interval = GetImportListSyncInterval();
|
importList.Interval = GetImportListSyncInterval();
|
||||||
|
|
||||||
|
var backup = _scheduledTaskRepository.GetDefinition(typeof(BackupCommand));
|
||||||
|
backup.Interval = GetBackupInterval();
|
||||||
|
|
||||||
var refreshMonitoredDownloads = _scheduledTaskRepository.GetDefinition(typeof(RefreshMonitoredDownloadsCommand));
|
var refreshMonitoredDownloads = _scheduledTaskRepository.GetDefinition(typeof(RefreshMonitoredDownloadsCommand));
|
||||||
refreshMonitoredDownloads.Interval = _configService.CheckForFinishedDownloadInterval;
|
refreshMonitoredDownloads.Interval = _configService.CheckForFinishedDownloadInterval;
|
||||||
|
|
||||||
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, importList, refreshMonitoredDownloads });
|
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, importList, refreshMonitoredDownloads, backup });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue