Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/03/11 17:14:02 (14 years ago)
Author:
cneumuel
Message:

#1233

  • improved the way jobs are downloaded by ExperimentManager and HiveEngine
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.HiveEngine/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.HiveEngine/3.4/HeuristicLab.HiveEngine-3.4.csproj

    r6039 r6111  
    150150  </ItemGroup>
    151151  <ItemGroup>
    152     <Compile Include="EngineJob.cs" />
    153152    <Compile Include="HeuristicLabHiveEnginePlugin.cs" />
    154153    <Compile Include="Exceptions\ScopeMergeException.cs" />
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.HiveEngine/3.4/HiveEngine.cs

    r6039 r6111  
    226226      object locker = new object();
    227227      IDictionary<Guid, int> jobIndices = new Dictionary<Guid, int>();
    228       var hiveExperiment = new HiveExperiment();;
     228      var hiveExperiment = new HiveExperiment();
    229229
    230230      try {
     
    240240        hiveExperiment.ResourceNames = this.ResourceNames;
    241241        hiveExperiment.Id = ServiceLocator.Instance.CallHiveService(s => s.AddHiveExperiment(hiveExperiment));
    242         hiveExperiments.Add(new RefreshableHiveExperiment(hiveExperiment));
     242        var refreshableHiveExperiment = new RefreshableHiveExperiment(hiveExperiment);
     243        hiveExperiments.Add(refreshableHiveExperiment);
    243244
    244245        // create upload-tasks
     
    283284        }, cancellationToken, TaskCreationOptions.PreferFairness);
    284285        processUploadedJobsTask.Start();
     286
     287        refreshableHiveExperiment.RefreshAutomatically = true;
     288       
     289        while (!refreshableHiveExperiment.AllJobsFinished()) {
     290          Thread.Sleep(1000);
     291          // update time
     292          // handle cancellation
     293        }
     294
     295
    285296
    286297        // poll job-statuses and create tasks for those which are finished
Note: See TracChangeset for help on using the changeset viewer.