Jobs added to queue have higher priority than scheduler jobs.

This commit is contained in:
kay.one 2012-02-26 14:35:45 -08:00
parent 3aa0a8f9ee
commit 4fe1d7e6f7
5 changed files with 30 additions and 8 deletions

View file

@ -8,6 +8,8 @@ namespace NzbDrone.Core.Model
public int TargetId { get; set; }
public int SecondaryTargetId { get; set; }
public JobSourceType Source { get; set; }
public bool Equals(JobQueueItem other)
{
return (JobType == other.JobType && TargetId == other.TargetId
@ -18,5 +20,11 @@ namespace NzbDrone.Core.Model
{
return string.Format("[{0}({1}, {2})]", JobType.Name, TargetId, SecondaryTargetId);
}
public enum JobSourceType
{
User,
Scheduler
}
}
}