Changeset 8993
- Timestamp:
- 12/04/12 11:10:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs
r8939 r8993 267 267 if (hiveTask != null) { 268 268 // lastJobDataUpdate equals DateTime.MinValue right after it was uploaded. When the first results are polled, this value is updated 269 if (hiveTask.Task.State == TaskState.Offline && lightweightTask.State != TaskState.Finished && lightweightTask.State != TaskState.Failed && lightweightTask.State != TaskState.Aborted) {269 if (hiveTask.Task.State == TaskState.Offline && lightweightTask.State == TaskState.Waiting) { 270 270 hiveTask.Task.LastTaskDataUpdate = lightweightTask.LastTaskDataUpdate; 271 271 } … … 273 273 hiveTask.UpdateFromLightweightJob(lightweightTask); 274 274 275 if (!hiveTask.IsFinishedTaskDownloaded && !hiveTask.IsDownloading && hiveTask.Task.LastTaskDataUpdate < lightweightTask.LastTaskDataUpdate ) {275 if (!hiveTask.IsFinishedTaskDownloaded && !hiveTask.IsDownloading && hiveTask.Task.LastTaskDataUpdate < lightweightTask.LastTaskDataUpdate && (lightweightTask.State == TaskState.Finished || lightweightTask.State == TaskState.Aborted || lightweightTask.State == TaskState.Failed || lightweightTask.State == TaskState.Paused)) { 276 276 log.LogMessage(string.Format("Downloading task {0}", lightweightTask.Id)); 277 277 hiveTask.IsDownloading = true;
Note: See TracChangeset
for help on using the changeset viewer.