Changeset 7165 for trunk/sources
- Timestamp:
- 12/10/11 16:32:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveClient.cs
r7156 r7165 242 242 HiveServiceLocator.Instance.CallHiveService(service => { 243 243 foreach (HiveTask task in refreshableJob.GetAllHiveTasks()) { 244 if (task.Task.State == TaskState.Paused) { 245 service.RestartTask(task.Task.Id); 244 if (task.Task.State == TaskState.Paused) { 245 service.RestartTask(task.Task.Id); 246 246 } 247 247 } … … 450 450 } 451 451 IDictionary<Guid, HiveTask> allHiveTasks = downloader.Results; 452 453 refreshableJob.HiveTasks = new ItemCollection<HiveTask>(allHiveTasks.Values.Where(x => !x.Task.ParentTaskId.HasValue)); 454 452 var parents = allHiveTasks.Values.Where(x => !x.Task.ParentTaskId.HasValue); 453 454 refreshableJob.Progress.Status = "Downloading/deserializing complete. Displaying tasks..."; 455 // build child-task tree 456 foreach (HiveTask hiveTask in parents) { 457 BuildHiveJobTree(hiveTask, allTasks, allHiveTasks); 458 } 459 460 refreshableJob.HiveTasks = new ItemCollection<HiveTask>(parents); 455 461 if (refreshableJob.IsFinished()) { 456 462 refreshableJob.ExecutionState = Core.ExecutionState.Stopped; … … 458 464 refreshableJob.ExecutionState = Core.ExecutionState.Started; 459 465 } 460 461 refreshableJob.Progress.Status = "Downloading/deserializing complete. Displaying tasks...";462 // build child-task tree463 foreach (HiveTask hiveTask in refreshableJob.HiveTasks) {464 BuildHiveJobTree(hiveTask, allTasks, allHiveTasks);465 }466 467 466 refreshableJob.OnLoaded(); 468 467 } finally {
Note: See TracChangeset
for help on using the changeset viewer.