Changeset 2108
- Timestamp:
- 06/25/09 17:02:24 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/ConfigurationManager/ConfigManager.cs
r2107 r2108 130 130 foreach (KeyValuePair<Guid, Executor> kvp in engines) { 131 131 Executor e = kvp.Value; 132 if (!e. Running && e.CurrentMessage == MessageContainer.MessageType.NoMessage)132 if (!e.JobIsFinished) 133 133 prog[e.JobId] = e.Progress; 134 134 } -
trunk/sources/HeuristicLab.Hive.Client.ExecutionEngine/3.2/Executor.cs
r2107 r2108 38 38 public MessageContainer.MessageType CurrentMessage { get; set; } 39 39 public MessageQueue Queue { get; set; } 40 40 41 public bool JobIsFinished { get; set; } 42 41 43 public bool Running { 42 44 get { … … 77 79 78 80 void Job_JobStopped(object sender, EventArgs e) { 79 if (CurrentMessage == MessageContainer.MessageType.NoMessage) 81 if (CurrentMessage == MessageContainer.MessageType.NoMessage) { 80 82 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.FinishedJob, JobId)); 81 else if (CurrentMessage == MessageContainer.MessageType.RequestSnapshot) 82 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.SnapshotReady, JobId)); 83 else if (CurrentMessage == MessageContainer.MessageType.AbortJob) 84 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.JobAborted, JobId)); 83 JobIsFinished = true; 84 } else if (CurrentMessage == MessageContainer.MessageType.RequestSnapshot) { 85 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.SnapshotReady, JobId)); 86 } else if (CurrentMessage == MessageContainer.MessageType.AbortJob) { 87 Queue.AddMessage(new MessageContainer(MessageContainer.MessageType.JobAborted, JobId)); 88 } 85 89 } 86 90 … … 125 129 public Executor() { 126 130 CurrentMessage = MessageContainer.MessageType.NoMessage; 131 JobIsFinished = false; 127 132 Job = new TestJob(); 128 133 }
Note: See TracChangeset
for help on using the changeset viewer.