Changeset 17575 for trunk/HeuristicLab.Services.Hive/3.3/Manager
- Timestamp:
- 05/29/20 13:31:30 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Services.Hive/3.3/Manager/HeartbeatManager.cs
r17574 r17575 120 120 var taskInfos = pm.UseTransaction(() => 121 121 (from task in taskDao.GetAll() 122 123 let lastStateLog = task.StateLogs.OrderByDescending(x => x.DateTime).FirstOrDefault()124 125 126 127 128 129 SlaveId = lastStateLog != null ? lastStateLog.SlaveId : default(Guid)130 122 where taskIds.Contains(task.TaskId) 123 let lastStateLog = task.StateLogs.OrderByDescending(x => x.DateTime).FirstOrDefault(x => x.State == DA.TaskState.Transferring) 124 select new { 125 TaskId = task.TaskId, 126 JobId = task.JobId, 127 State = task.State, 128 Command = task.Command, 129 SlaveId = lastStateLog != null ? lastStateLog.SlaveId : Guid.Empty 130 }).ToList() 131 131 ); 132 132
Note: See TracChangeset
for help on using the changeset viewer.