Changeset 12858 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Manager/NewEventManager.cs
- Timestamp:
- 08/13/15 15:22:51 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Manager/NewEventManager.cs
r12853 r12858 31 31 get { return ServiceLocator.Instance.PersistenceManager; } 32 32 } 33 private IAuthorizationManager AuthorizationManager {34 get { return ServiceLocator.Instance.AuthorizationManager; }35 }36 private ILogger Log {37 get { return LogFactory.GetLogger(this.GetType().Namespace); }38 }39 33 40 34 public void Cleanup() { 41 using (var pm = PersistenceManager) {42 43 44 45 46 47 48 35 var pm = PersistenceManager; 36 // same transactions as the old EventManager 37 pm.UseTransaction(() => { 38 SetTimeoutSlavesOffline(pm); 39 SetTimeoutTasksWaiting(pm); 40 DeleteObsoleteSlaves(pm); 41 pm.SubmitChanges(); 42 }); 49 43 50 pm.UseTransaction(() => { 51 FinishParentTasks(pm); 52 pm.SubmitChanges(); 53 }); 54 } 44 pm.UseTransaction(() => { 45 FinishParentTasks(pm); 46 pm.SubmitChanges(); 47 }); 55 48 } 56 49
Note: See TracChangeset
for help on using the changeset viewer.