- Timestamp:
- 06/26/09 11:48:24 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Grid.HiveBridge/3.2/HiveGridServerWrapper.cs
r2112 r2114 49 49 public JobState JobState(Guid guid) { 50 50 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) { 56 52 return HeuristicLab.Grid.JobState.Busy; 57 53 } else return HeuristicLab.Grid.JobState.Unknown; … … 71 67 HeuristicLab.Hive.Engine.Job restoredJob = (HeuristicLab.Hive.Engine.Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJobResultData); 72 68 // 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) { 74 70 // Serialize the engine 75 71 MemoryStream memStream = new MemoryStream();
Note: See TracChangeset
for help on using the changeset viewer.