diff --git a/JobQueue/Job.cs b/JobQueue/Job.cs index 9fd14ce..ca90df7 100644 --- a/JobQueue/Job.cs +++ b/JobQueue/Job.cs @@ -79,4 +79,9 @@ public abstract class Job : IComparable throw new ArgumentException("Type can not be compared", nameof(obj)); return TimeToNextExecution().CompareTo(other.TimeToNextExecution()); } + + public override bool Equals(object? obj) + { + return obj is Job other && other.JobId.Equals(this.JobId); + } } \ No newline at end of file