Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8993 for trunk/sources


Ignore:
Timestamp:
12/04/12 11:10:50 (12 years ago)
Author:
ascheibe
Message:

#1950 fixed downloading of the wrong number of runs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/RefreshableJob.cs

    r8939 r8993  
    267267          if (hiveTask != null) {
    268268            // 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) {
    270270              hiveTask.Task.LastTaskDataUpdate = lightweightTask.LastTaskDataUpdate;
    271271            }
     
    273273            hiveTask.UpdateFromLightweightJob(lightweightTask);
    274274
    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)) {
    276276              log.LogMessage(string.Format("Downloading task {0}", lightweightTask.Id));
    277277              hiveTask.IsDownloading = true;
Note: See TracChangeset for help on using the changeset viewer.