Changeset 15262 for stable/HeuristicLab.Clients.Hive/3.3/HiveTasks
- Timestamp:
- 07/16/17 13:08:06 (7 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14901,15121
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Hive/3.3/HiveTasks/OptimizerHiveTask.cs
r14186 r15262 316 316 public override void AddChildHiveTask(HiveTask hiveTask) { 317 317 base.AddChildHiveTask(hiveTask); 318 var optimizerHive Job= (OptimizerHiveTask)hiveTask;318 var optimizerHiveTask = (OptimizerHiveTask)hiveTask; 319 319 syncTasksWithOptimizers = false; 320 if (this.ItemTask != null && optimizerHiveJob.ItemTask != null) { 321 // if task is in state Paused, it has to preserve its ResultCollection, which is cleared when a optimizer is added to an experiment 322 OptimizerTask optimizerJobClone = null; 323 if (optimizerHiveJob.Task.State == TaskState.Paused) { 324 optimizerJobClone = (OptimizerTask)optimizerHiveJob.ItemTask.Clone(); 325 } 320 if (this.ItemTask != null && optimizerHiveTask.ItemTask != null) { 321 OptimizerTask optimizerTaskClone = (OptimizerTask)optimizerHiveTask.ItemTask.Clone(); 326 322 327 323 if (this.ItemTask.Item is Optimization.Experiment) { 328 if (!this.ItemTask.OptimizerAsExperiment.Optimizers.Contains(optimizerHive Job.ItemTask.Item)) {329 UpdateOptimizerInExperiment(this.ItemTask.OptimizerAsExperiment, optimizerHive Job.ItemTask);324 if (!this.ItemTask.OptimizerAsExperiment.Optimizers.Contains(optimizerHiveTask.ItemTask.Item)) { 325 UpdateOptimizerInExperiment(this.ItemTask.OptimizerAsExperiment, optimizerHiveTask.ItemTask); 330 326 } 331 327 } else if (this.ItemTask.Item is Optimization.BatchRun) { 332 UpdateOptimizerInBatchRun(this.ItemTask.OptimizerAsBatchRun, optimizerHive Job.ItemTask);333 } 334 335 if (optimizerHiveJob.Task.State == TaskState.Paused) {336 optimizerHiveJob.ItemTask = optimizerJobClone;337 }328 UpdateOptimizerInBatchRun(this.ItemTask.OptimizerAsBatchRun, optimizerHiveTask.ItemTask); 329 } 330 331 optimizerHiveTask.syncTasksWithOptimizers = false; 332 optimizerHiveTask.ItemTask = optimizerTaskClone; 333 optimizerHiveTask.syncTasksWithOptimizers = true; 338 334 } 339 335 syncTasksWithOptimizers = true;
Note: See TracChangeset
for help on using the changeset viewer.