- Timestamp:
- 12/14/11 01:09:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs
r7045 r7187 559 559 authen.AuthenticateForAnyRole(HiveRoles.Administrator, HiveRoles.Slave); 560 560 // use a serializable transaction here to ensure not two threads execute this simultaniously (mutex-lock would not work since IIS may use multiple AppDomains) 561 bool cleanup = false; 561 562 trans.UseTransaction(() => { 562 563 DateTime lastCleanup = dao.GetLastCleanup(); 563 if (force || DateTime.Now - lastCleanup > TimeSpan.FromSeconds( 59)) {564 if (force || DateTime.Now - lastCleanup > TimeSpan.FromSeconds(140)) { 564 565 dao.SetLastCleanup(DateTime.Now); 565 eventManager.Cleanup();566 cleanup = true; 566 567 } 567 568 }, true); 569 570 if (cleanup) { 571 eventManager.Cleanup(); 572 } 568 573 } 569 574 #endregion
Note: See TracChangeset
for help on using the changeset viewer.