mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-08 21:14:30 +02:00
Fixed: Task Error due to Not Found in Scheduled Tasks
This commit is contained in:
parent
91b5e359bd
commit
a0fe43cd6e
1 changed files with 3 additions and 3 deletions
|
|
@ -194,10 +194,10 @@ public void HandleAsync(ConfigSavedEvent message)
|
||||||
var netImport = _scheduledTaskRepository.GetDefinition(typeof(NetImportSyncCommand));
|
var netImport = _scheduledTaskRepository.GetDefinition(typeof(NetImportSyncCommand));
|
||||||
netImport.Interval = _configService.NetImportSyncInterval;
|
netImport.Interval = _configService.NetImportSyncInterval;
|
||||||
|
|
||||||
var checkForFinishedDownloads = _scheduledTaskRepository.GetDefinition(typeof(CheckForFinishedDownloadCommand));
|
var refreshMonitoredDownloads = _scheduledTaskRepository.GetDefinition(typeof(RefreshMonitoredDownloadsCommand));
|
||||||
checkForFinishedDownloads.Interval = _configService.CheckForFinishedDownloadInterval;
|
refreshMonitoredDownloads.Interval = _configService.CheckForFinishedDownloadInterval;
|
||||||
|
|
||||||
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, netImport, checkForFinishedDownloads });
|
_scheduledTaskRepository.UpdateMany(new List<ScheduledTask> { rss, netImport, refreshMonitoredDownloads });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue