예제 #1
0
        /// <summary>
        /// Reinitializes cancelled job.
        /// </summary>
        /// <param name="job">
        /// An instance of <see cref="Job"/>. 
        /// </param>
        public void RestartJob(Job job)
        {
            job.InitJobState();
            foreach (var task in job.Tasks)
            {
                taskQueue.RestartTask(task);
            }

            job.State = JobState.Ready;
        }
 /// <summary>
 /// Perfoms build state on job start event.
 /// </summary>
 /// <param name="job">
 /// Job to start.
 /// </param>
 public void Build(Job job)
 {
     Logger.Write(LogCategories.Information(string.Format("Initializing job {{{0}}}", job), LogCategories.TaskServices));
     job.InitJobState();
 }