mirror of
https://github.com/Readarr/Readarr
synced 2025-12-20 15:23:55 +01:00
added UpdateSceneMappingCommand to TaskManager
This commit is contained in:
parent
f72d4dd394
commit
ad008d4eb5
1 changed files with 4 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
|||
using NzbDrone.Common.Messaging;
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Configuration.Events;
|
||||
using NzbDrone.Core.DataAugmentation.Scene;
|
||||
using NzbDrone.Core.Indexers;
|
||||
using NzbDrone.Core.Instrumentation.Commands;
|
||||
using NzbDrone.Core.Lifecycle;
|
||||
|
|
@ -47,7 +48,8 @@ public void Handle(ApplicationStartedEvent message)
|
|||
new ScheduledTask{ Interval = 12*60, TypeName = typeof(RefreshSeriesCommand).FullName},
|
||||
new ScheduledTask{ Interval = 1, TypeName = typeof(DownloadedEpisodesScanCommand).FullName},
|
||||
new ScheduledTask{ Interval = 60, TypeName = typeof(ApplicationUpdateCommand).FullName},
|
||||
new ScheduledTask{ Interval = 1*60, TypeName = typeof(TrimLogCommand).FullName}
|
||||
new ScheduledTask{ Interval = 1*60, TypeName = typeof(TrimLogCommand).FullName},
|
||||
new ScheduledTask{ Interval = 3*60, TypeName = typeof(UpdateSceneMappingCommand).FullName}
|
||||
};
|
||||
|
||||
var currentTasks = _scheduledTaskRepository.All();
|
||||
|
|
@ -86,7 +88,7 @@ public void HandleAsync(CommandExecutedEvent message)
|
|||
|
||||
public void HandleAsync(ConfigSavedEvent message)
|
||||
{
|
||||
var rss = _scheduledTaskRepository.GetDefinition(typeof (RssSyncCommand));
|
||||
var rss = _scheduledTaskRepository.GetDefinition(typeof(RssSyncCommand));
|
||||
rss.Interval = _configService.RssSyncInterval;
|
||||
_scheduledTaskRepository.Update(rss);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue