Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/14/11 01:09:54 (12 years ago)
Author:
ascheibe
Message:

#1672

  • increased times between life cycles on the server
  • some smaller performance improvements on the server
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs

    r7045 r7187  
    559559      authen.AuthenticateForAnyRole(HiveRoles.Administrator, HiveRoles.Slave);
    560560      // 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;
    561562      trans.UseTransaction(() => {
    562563        DateTime lastCleanup = dao.GetLastCleanup();
    563         if (force || DateTime.Now - lastCleanup > TimeSpan.FromSeconds(59)) {
     564        if (force || DateTime.Now - lastCleanup > TimeSpan.FromSeconds(140)) {
    564565          dao.SetLastCleanup(DateTime.Now);
    565           eventManager.Cleanup();
     566          cleanup = true;
    566567        }
    567568      }, true);
     569
     570      if (cleanup) {
     571        eventManager.Cleanup();
     572      }
    568573    }
    569574    #endregion
Note: See TracChangeset for help on using the changeset viewer.