Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/17/15 10:11:56 (9 years ago)
Author:
dglaser
Message:

#2388:

HeuristicLab.Services.WebApp-3.3:

  • The font is now loaded properly even when accessing the page over https
  • Added no-cache to the index page
  • Added no-cache to the views in addition to the existing (datetime) cache buster
    • Caching can be enabled when required

HeuristicLab.Services.Hive-3.3:

  • Improved performance of NewHeartbeatManager by adding an additional check if the collection is empty

HeuristicLab.Services.WebApp.Statistics-3.3:

  • Removed invalid link from the exception page

Projects:

  • Added the '-3.3' affix to the assembly names
File:
1 edited

Legend:

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

    r12691 r12773  
    5050        var slaveDao = pm.SlaveDao;
    5151        var taskDao = pm.TaskDao;
    52 
    5352        var slave = pm.UseTransaction(() => slaveDao.GetById(heartbeat.SlaveId));
    5453        if (slave == null) {
     
    8584              if (mutexAquired) {
    8685                var waitingTasks = pm.UseTransaction(() => taskDao.GetWaitingTasks(slave)
    87                   .Select(x => new TaskInfoForScheduler {
    88                     TaskId = x.TaskId,
    89                     JobId = x.JobId,
    90                     Priority = x.Priority
    91                   })
    92                   .ToList()
     86                    .Select(x => new TaskInfoForScheduler {
     87                      TaskId = x.TaskId,
     88                      JobId = x.JobId,
     89                      Priority = x.Priority
     90                    })
     91                    .ToList()
    9392                );
    9493                var availableTasks = TaskScheduler.Schedule(waitingTasks);
     
    146145      var assignedResourceDao = pm.AssignedResourceDao;
    147146      var actions = new List<MessageContainer>();
    148       if (heartbeat.JobProgress == null)
     147      if (heartbeat.JobProgress == null || !heartbeat.JobProgress.Any())
    149148        return actions;
    150149
     
    154153        // select all tasks and statelogs with one query
    155154        var taskIds = heartbeat.JobProgress.Select(x => x.Key).ToList();
    156         var taskInfos =
     155        var taskInfos = pm.UseTransaction(() =>
    157156          (from task in taskDao.GetAll()
    158157           where taskIds.Contains(task.TaskId)
     
    162161             Command = task.Command,
    163162             SlaveId = lastStateLog != null ? lastStateLog.SlaveId : default(Guid)
    164            })
    165            .ToList();
     163           }).ToList()
     164        );
    166165
    167166        // process the jobProgresses
Note: See TracChangeset for help on using the changeset viewer.