mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
fixed some issues here and there.
This commit is contained in:
parent
4deecde092
commit
85cd877b0c
12 changed files with 66 additions and 20 deletions
|
@ -8,7 +8,6 @@ namespace NzbDrone.Core.Jobs
|
|||
{
|
||||
public interface IScheduledTaskRepository : IBasicRepository<ScheduledTask>
|
||||
{
|
||||
IList<ScheduledTask> GetPendingJobs();
|
||||
ScheduledTask GetDefinition(Type type);
|
||||
void SetLastExecutionTime(int id, DateTime executionTime);
|
||||
}
|
||||
|
@ -27,12 +26,6 @@ namespace NzbDrone.Core.Jobs
|
|||
return Query.Single(c => c.TypeName == type.FullName);
|
||||
}
|
||||
|
||||
|
||||
public IList<ScheduledTask> GetPendingJobs()
|
||||
{
|
||||
return Query.Where(c => c.Interval != 0).ToList().Where(c => c.LastExecution < DateTime.Now.AddMinutes(-c.Interval)).ToList();
|
||||
}
|
||||
|
||||
public void SetLastExecutionTime(int id, DateTime executionTime)
|
||||
{
|
||||
var task = new ScheduledTask
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue