Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2114 for trunk/sources


Ignore:
Timestamp:
06/26/09 11:48:24 (15 years ago)
Author:
gkronber
Message:
  • fixed a bug in determination of JobState in HiveGridServerWrapper
  • fixed a bug in discrimination between snap shot results and end results in HiveGridServerWrapper

#679 (HiveGridWrapper treats snap shot results the same way as end results)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Grid.HiveBridge/3.2/HiveGridServerWrapper.cs

    r2112 r2114  
    4949    public JobState JobState(Guid guid) {
    5050      ResponseObject<SerializedJobResult> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false));
    51       if (response != null && response.Success == true &&
    52         (response.StatusMessage == ApplicationConstants.RESPONSE_JOB_RESULT_NOT_YET_HERE ||
    53           response.StatusMessage == ApplicationConstants.RESPONSE_JOB_REQUEST_SET ||
    54           response.StatusMessage == ApplicationConstants.RESPONSE_JOB_REQUEST_ALLREADY_SET ||
    55           response.StatusMessage == ApplicationConstants.RESPONSE_JOB_JOB_RESULT_SENT)) {
     51      if (response != null) {
    5652        return HeuristicLab.Grid.JobState.Busy;
    5753      } else return HeuristicLab.Grid.JobState.Unknown;
     
    7167        HeuristicLab.Hive.Engine.Job restoredJob = (HeuristicLab.Hive.Engine.Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJobResultData);
    7268        // only return the engine when it wasn't canceled (result is only a snapshot)
    73         if (restoredJob.Progress < 1.0) {
     69        if (restoredJob.Progress == 1.0) {
    7470          // Serialize the engine
    7571          MemoryStream memStream = new MemoryStream();
Note: See TracChangeset for help on using the changeset viewer.