Changeset 1772
- Timestamp:
- 05/08/09 14:25:42 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/Client.cs
r1509 r1772 28 28 namespace HeuristicLab.Hive.Contracts.BusinessObjects { 29 29 30 public enum State { nullState, idle, calculating, offline, finished, abort, requestSnapshot };30 public enum State { nullState, idle, calculating, offline, finished, abort, requestSnapshot, requestSnapshotSent }; 31 31 32 32 [DataContract] -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientCommunicator.cs
r1770 r1772 310 310 // a request for a snapshot has been set 311 311 response.ActionRequest.Add(new MessageContainer(MessageContainer.MessageType.RequestSnapshot, curJob.Id)); 312 curJob.State = State. calculating;312 curJob.State = State.requestSnapshotSent; 313 313 } 314 314 } … … 422 422 return response; 423 423 } 424 if (job.State == State.requestSnapshotSent) { 425 job.State = State.calculating; 426 } 424 427 if (job.State != State.calculating) { 425 428 response.Success = false; -
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/JobManager.cs
r1770 r1772 239 239 240 240 Job job = jobAdapter.GetById(jobId); 241 if (requested && job.State == State.requestSnapshot) {241 if (requested && (job.State == State.requestSnapshot || job.State == State.requestSnapshotSent)) { 242 242 response.Success = true; 243 243 response.StatusMessage = ApplicationConstants.RESPONSE_JOB_RESULT_NOT_YET_HERE;
Note: See TracChangeset
for help on using the changeset viewer.