- Timestamp:
- 02/03/13 16:17:44 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UnloadJobs/HeuristicLab.Clients.Hive/3.3/ConcurrentTaskDownloader.cs
r9170 r9202 68 68 69 69 private Task DownloadTask(object taskId) { 70 return HiveServiceLocator.Instance.CallHiveService(s => s.GetTask((Guid)taskId)); 70 Task t = null; 71 HiveClient.TryAndRepeat(() => { 72 t = HiveServiceLocator.Instance.CallHiveService(s => s.GetTask((Guid)taskId)); 73 }, Settings.Default.MaxRepeatServiceCalls, "Failed to download task."); 74 return t; 71 75 } 72 76 … … 77 81 protected Tuple<Task, TaskData> DownloadTaskData(Task task) { 78 82 downloadSemaphore.WaitOne(); 79 TaskData result ;83 TaskData result = null; 80 84 try { 81 85 if (abort) return null; 82 result = HiveServiceLocator.Instance.CallHiveService(s => s.GetTaskData(task.Id)); 86 HiveClient.TryAndRepeat(() => { 87 result = HiveServiceLocator.Instance.CallHiveService(s => s.GetTaskData(task.Id)); 88 }, Settings.Default.MaxRepeatServiceCalls, "Failed to download task data."); 83 89 } 84 90 finally {
Note: See TracChangeset
for help on using the changeset viewer.