Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/29/10 15:50:03 (14 years ago)
Author:
cneumuel
Message:

#1260

  • refined job-downloads for limited resources
  • fixed minor bugs
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  
    104104    }
    105105
    106     public Dictionary<Guid, TimeSpan> GetExecutionTimeOfAllJobs() {
     106    public Dictionary<Guid, TimeSpan> GetExecutionTimeOfRunningJobs() {
    107107      Dictionary<Guid, TimeSpan> prog = new Dictionary<Guid, TimeSpan>();
    108108      Dictionary<Guid, Executor> engines = Core.ExecutionEngines;
    109109      lock (engines) {
    110110        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          }
    113115        }
    114116      }
  • branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Core/3.3/HeartbeatManager.cs

    r4772 r5181  
    9898                FreeCores = info.NrOfCores.HasValue ? info.NrOfCores.Value - ConfigManager.Instance.GetUsedCores() : 0,
    9999                FreeMemory = GetFreeMemory(),
    100                 JobProgress = ConfigManager.Instance.GetExecutionTimeOfAllJobs(),
     100                JobProgress = ConfigManager.Instance.GetExecutionTimeOfRunningJobs(),
    101101                IsAllowedToCalculate = UptimeManager.Instance.IsAllowedToCalculate() && UptimeManager.Instance.CalendarAvailable
    102102              };
Note: See TracChangeset for help on using the changeset viewer.