Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1925


Ignore:
Timestamp:
05/28/09 15:19:57 (16 years ago)
Author:
gkronber
Message:

Fixed #657 (HiveEngine doesn't add all necessary plugins to the list of necessary plugins for a job)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngine.cs

    r1834 r1925  
    8080
    8181    public void Execute() {
     82      var jobObj = CreateJobObj();
     83
    8284      IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl);
    83 
    84       var jobObj = CreateJobObj();
    85 
    8685      ResponseObject<Contracts.BusinessObjects.Job> res = executionEngineFacade.AddJob(jobObj);
    8786      jobId = res.Obj.Id;
     
    107106      foreach (IStorable storeable in dictionary.Values) {
    108107        PluginInfo pluginInfo = service.GetDeclaringPlugin(storeable.GetType());
    109         if (!plugins.Contains(pluginInfo)) plugins.Add(pluginInfo);
     108        if (!plugins.Contains(pluginInfo)) {
     109          plugins.Add(pluginInfo);
     110          foreach (var dependency in pluginInfo.Dependencies) {
     111            if (!plugins.Contains(dependency)) plugins.Add(dependency);
     112          }
     113        }
    110114      }
    111115
Note: See TracChangeset for help on using the changeset viewer.