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/Manager/EventManager.cs

    r7178 r7187  
    4141      get { return LogFactory.GetLogger(this.GetType().Namespace); }
    4242    }
     43    private DataAccess.ITransactionManager trans {
     44      get { return ServiceLocator.Instance.TransactionManager; }
     45    }
    4346
    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);
    4957    }
    5058
Note: See TracChangeset for help on using the changeset viewer.