Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/16/11 17:02:15 (14 years ago)
Author:
cneumuel
Message:

#1233

  • fixed statelog when time on server differs from slave or client
  • fixed wrong creation of childjobs in experiment manager
  • made ganttchardview the default view for statelogs
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/Job.cs

    r5614 r5718  
    4646      this.PluginsNeededIds = new List<Guid>();
    4747    }
    48 
    49 
    50     public override string ToString() {
    51       return string.Format("State: {0}, SlaveId: {1}, DateCreated: {2}, DateCalculated: {3}, CoresNeeded: {4}, MemoryNeeded: {5}", State, CurrentStateLog.SlaveId, DateCreated, CoresNeeded, MemoryNeeded);
    52     }
    53 
    5448  }
    5549}
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/DataTransfer/LightweightJob.cs

    r5636 r5718  
    3838    public JobState State { get; set; }
    3939
    40     public StateLog CurrentStateLog { get { return StateLog.Last(); } }
    41     public DateTime DateCreated { get { return StateLog.First().DateTime; } }
    42     public DateTime? DateFinished { get { return CurrentStateLog.State == JobState.Finished ? new DateTime?(CurrentStateLog.DateTime) : null; } }
     40    public StateLog CurrentStateLog { get { return StateLog.LastOrDefault(); } }
     41    public DateTime? DateCreated { get { return StateLog.Count > 0 ? new DateTime?(StateLog.First().DateTime) : null; } }
     42    public DateTime? DateFinished { get { return (StateLog.Count > 0 && CurrentStateLog.State == JobState.Finished) ? new DateTime?(CurrentStateLog.DateTime) : null; } }
    4343
    4444    public LightweightJob() {
Note: See TracChangeset for help on using the changeset viewer.