mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Scheduled tasks shwon in UI under System
This commit is contained in:
parent
879035b28a
commit
2b0ddb6131
14 changed files with 310 additions and 8 deletions
|
@ -23,6 +23,7 @@ namespace NzbDrone.Core.Jobs
|
|||
public interface ITaskManager
|
||||
{
|
||||
IList<ScheduledTask> GetPending();
|
||||
List<ScheduledTask> GetAll();
|
||||
}
|
||||
|
||||
public class TaskManager : ITaskManager, IHandle<ApplicationStartedEvent>, IHandle<CommandExecutedEvent>, IHandleAsync<ConfigSavedEvent>
|
||||
|
@ -45,6 +46,11 @@ namespace NzbDrone.Core.Jobs
|
|||
.ToList();
|
||||
}
|
||||
|
||||
public List<ScheduledTask> GetAll()
|
||||
{
|
||||
return _scheduledTaskRepository.All().ToList();
|
||||
}
|
||||
|
||||
public void Handle(ApplicationStartedEvent message)
|
||||
{
|
||||
var defaultTasks = new[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue