- Timestamp:
- 05/03/11 17:14:02 (14 years ago)
- 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 150 150 </ItemGroup> 151 151 <ItemGroup> 152 <Compile Include="EngineJob.cs" />153 152 <Compile Include="HeuristicLabHiveEnginePlugin.cs" /> 154 153 <Compile Include="Exceptions\ScopeMergeException.cs" /> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.HiveEngine/3.4/HiveEngine.cs
r6039 r6111 226 226 object locker = new object(); 227 227 IDictionary<Guid, int> jobIndices = new Dictionary<Guid, int>(); 228 var hiveExperiment = new HiveExperiment(); ;228 var hiveExperiment = new HiveExperiment(); 229 229 230 230 try { … … 240 240 hiveExperiment.ResourceNames = this.ResourceNames; 241 241 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); 243 244 244 245 // create upload-tasks … … 283 284 }, cancellationToken, TaskCreationOptions.PreferFairness); 284 285 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 285 296 286 297 // poll job-statuses and create tasks for those which are finished
Note: See TracChangeset
for help on using the changeset viewer.