Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/17/15 16:57:22 (9 years ago)
Author:
dglaser
Message:

#2388:

HeuristicLab.Services.Hive-3.3:

  • HiveStatisticsGenerator.cs: Jobs that are deleted are now automatically marked as completed in the hive statistics tables. This was added because when a job got paused and deleted afterwards, it would still show up as ongoing job in the hive statistics.
  • Minor changes in NewHiveService.cs

HeuristicLab.Services.WebApp.Statistics-3.3:

  • Expired slaves are now shown as offline (previously the last known state was shown)
  • Adjusted dialog height

HeuristicLab.Services.WebApp-3.3:

  • Changed string.Format to Path.Combine to concate directory paths
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HiveStatisticsGenerator.cs

    r12765 r12776  
    134134
    135135    private void UpdateExistingDimJobs(PersistenceManager pm) {
     136      var jobDao = pm.JobDao;
    136137      var dimJobDao = pm.DimJobDao;
    137138      var factTaskDao = pm.FactTaskDao;
     
    151152        }
    152153        if (totalTasks == completedTasks) {
    153           dimJob.DateCompleted = factTaskDao.GetLastCompletedTaskFromJob(dimJob.JobId) ?? DateTime.Now;
     154          var completeDate = factTaskDao.GetLastCompletedTaskFromJob(dimJob.JobId);
     155          if (completeDate == null) {
     156            if (jobDao.GetById(dimJob.JobId) == null) {
     157              completeDate = DateTime.Now;
     158            }
     159          }
     160          dimJob.DateCompleted = completeDate;
    154161        }
    155162        dimJob.TotalTasks = totalTasks;
Note: See TracChangeset for help on using the changeset viewer.