- Timestamp:
- 05/08/09 14:17:28 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/3.2/ApplicationConstants.cs
r1757 r1770 93 93 public static string RESPONSE_JOB_REQUEST_SET = "Job.RequestSet"; 94 94 public static string RESPONSE_JOB_ABORT_REQUEST_SET = "Job.AbortRequestSet"; 95 public static string RESPONSE_JOB_RESULT_NOT_YET_HERE = "Requested job result is not yet finished"; 95 96 } 96 97 } -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientCommunicator.cs
r1760 r1770 301 301 // a request to abort the job has been set 302 302 response.ActionRequest.Add(new MessageContainer(MessageContainer.MessageType.AbortJob, curJob.Id)); 303 curJob.State = State. offline;303 curJob.State = State.finished; 304 304 } else { 305 305 // save job progress -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/JobManager.cs
r1762 r1770 237 237 238 238 ResponseObject<JobResult> response = new ResponseObject<JobResult>(); 239 240 Job job = jobAdapter.GetById(jobId); 241 if (requested && job.State == State.requestSnapshot) { 242 response.Success = true; 243 response.StatusMessage = ApplicationConstants.RESPONSE_JOB_RESULT_NOT_YET_HERE; 244 return response; 245 } 246 239 247 response.Success = true; 240 248 response.StatusMessage = ApplicationConstants.RESPONSE_JOB_JOB_RESULT_SENT; 241 response.Obj = GetLastJobResult(job Adapter.GetById(jobId));249 response.Obj = GetLastJobResult(job); 242 250 243 251 return response;
Note: See TracChangeset
for help on using the changeset viewer.