public JobTask DequeueTask(JobTask task)
 {
     return(Tasks.DequeueItem(task));
 }
 public void AddTask(JobTask task)
 {
     Tasks.Add(task);
 }