Changeset 5181 for branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3
- Timestamp:
- 12/29/10 15:50:03 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/ConfigurationManager/ConfigManager.cs
r5000 r5181 104 104 } 105 105 106 public Dictionary<Guid, TimeSpan> GetExecutionTimeOf AllJobs() {106 public Dictionary<Guid, TimeSpan> GetExecutionTimeOfRunningJobs() { 107 107 Dictionary<Guid, TimeSpan> prog = new Dictionary<Guid, TimeSpan>(); 108 108 Dictionary<Guid, Executor> engines = Core.ExecutionEngines; 109 109 lock (engines) { 110 110 foreach (KeyValuePair<Guid, Executor> kvp in engines) { 111 Executor e = kvp.Value; 112 prog[e.JobId] = e.ExecutionTime; 111 if (kvp.Value.ExecutionState == HeuristicLab.Core.ExecutionState.Started) { // only report from started jobs. this ensures that hung jobs will get an abort after some timeout. also if a job is already prepared (after it stopped), the executionTime would be 00:00:00 112 Executor e = kvp.Value; 113 prog[e.JobId] = e.ExecutionTime; 114 } 113 115 } 114 116 } -
branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/HeartbeatManager.cs
r4772 r5181 98 98 FreeCores = info.NrOfCores.HasValue ? info.NrOfCores.Value - ConfigManager.Instance.GetUsedCores() : 0, 99 99 FreeMemory = GetFreeMemory(), 100 JobProgress = ConfigManager.Instance.GetExecutionTimeOf AllJobs(),100 JobProgress = ConfigManager.Instance.GetExecutionTimeOfRunningJobs(), 101 101 IsAllowedToCalculate = UptimeManager.Instance.IsAllowedToCalculate() && UptimeManager.Instance.CalendarAvailable 102 102 };
Note: See TracChangeset
for help on using the changeset viewer.