Changeset 7187 for trunk/sources/HeuristicLab.Services.Hive/3.3/Manager
- Timestamp:
- 12/14/11 01:09:54 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Services.Hive/3.3/Manager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive/3.3/Manager/EventManager.cs
r7178 r7187 41 41 get { return LogFactory.GetLogger(this.GetType().Namespace); } 42 42 } 43 private DataAccess.ITransactionManager trans { 44 get { return ServiceLocator.Instance.TransactionManager; } 45 } 43 46 44 public void Cleanup() { 45 SetTimeoutSlavesOffline(); 46 SetTimeoutTasksWaiting(); 47 FinishParentTasks(); 48 UpdateStatistics(); 47 public void Cleanup() { 48 trans.UseTransaction(() => { 49 SetTimeoutSlavesOffline(); 50 SetTimeoutTasksWaiting(); 51 }, true); 52 53 trans.UseTransaction(() => { 54 FinishParentTasks(); 55 UpdateStatistics(); 56 }, false); 49 57 } 50 58 -
trunk/sources/HeuristicLab.Services.Hive/3.3/Manager/HeartbeatManager.cs
r6983 r7187 44 44 if (slave == null) { 45 45 actions.Add(new MessageContainer(MessageContainer.MessageType.SayHello)); 46 } else { 47 Slave s = dao.GetSlave(heartbeat.SlaveId); 48 if (s != null) { 49 if (heartbeat.HbInterval != s.HbInterval) { 50 actions.Add(new MessageContainer(MessageContainer.MessageType.NewHBInterval)); 51 } 46 } else { 47 if (heartbeat.HbInterval != slave.HbInterval) { 48 actions.Add(new MessageContainer(MessageContainer.MessageType.NewHBInterval)); 52 49 } 53 50 54 51 // update slave data 55 52 slave.FreeCores = heartbeat.FreeCores;
Note: See TracChangeset
for help on using the changeset viewer.