Esempio n. 1
0
        public void Add(Job job, JobSchedule jobSchedule)
        {
            if (m_activeJobs.Any(x => x.JobId == job.Id))
            {
                return;
            }
            m_logger.Info("Enqueueing {0}", job.Name);
            var je = new JobExecutioner(job, jobSchedule, this.TaskManager);

            m_activeJobs.Add(je);
            m_jobQueue.Enqueue(je);
        }
Esempio n. 2
0
 public void Add(Job job, JobSchedule jobSchedule)
 {
     if (m_activeJobs.Any(x => x.JobId == job.Id))
     {
         return;
     }
     m_logger.Info("Enqueueing {0}", job.Name);
     var je = new JobExecutioner(job, jobSchedule, this.TaskManager);
     m_activeJobs.Add(je);
     m_jobQueue.Enqueue(je);
 }