Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/11 17:49:27 (13 years ago)
Author:
cneumuel
Message:

#1233

  • added consideration of appointments in heartbeats
  • code cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive/3.4/HiveService.cs

    r6367 r6369  
    317317      return trans.UseTransaction(() => {
    318318        foreach (Guid guid in pluginIds) {
    319           List<PluginData> pluginData = dao.GetPluginDatas(x => x.PluginId == guid).ToList();
    320           if (pluginData != null) {
    321             pluginDatas.AddRange(pluginData);
    322           } else {
    323             //ignore ?
    324           }
     319          pluginDatas.AddRange(dao.GetPluginDatas(x => x.PluginId == guid).ToList());
    325320        }
    326321        return pluginDatas;
     
    420415
    421416    public void TriggerLifecycle(bool force) {
    422       // use a serializable transaction here to ensure not two threads execute this simultaniously (locking would not work since IIS may use multiple AppDomains)
     417      // use a serializable transaction here to ensure not two threads execute this simultaniously (mutex-lock would not work since IIS may use multiple AppDomains)
    423418      trans.UseTransaction(() => {
    424419        DateTime lastCleanup = dao.GetLastCleanup();
     
    444439
    445440      if (includeParent) jobs.Add(GetJob(parentJobId.Value));
    446 
    447441      return jobs;
    448442    }
    449 
    450443    #endregion
    451444
Note: See TracChangeset for help on using the changeset viewer.