Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1772


Ignore:
Timestamp:
05/08/09 14:25:42 (16 years ago)
Author:
msteinbi
Message:

adapted handling of snapshot requests (#531)

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/Client.cs

    r1509 r1772  
    2828namespace HeuristicLab.Hive.Contracts.BusinessObjects {
    2929
    30   public enum State { nullState, idle, calculating, offline, finished, abort, requestSnapshot };
     30  public enum State { nullState, idle, calculating, offline, finished, abort, requestSnapshot, requestSnapshotSent };
    3131
    3232  [DataContract]
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ClientCommunicator.cs

    r1770 r1772  
    310310              // a request for a snapshot has been set
    311311              response.ActionRequest.Add(new MessageContainer(MessageContainer.MessageType.RequestSnapshot, curJob.Id));
    312               curJob.State = State.calculating;
     312              curJob.State = State.requestSnapshotSent;
    313313            }
    314314          }
     
    422422          return response;
    423423        }
     424        if (job.State == State.requestSnapshotSent) {
     425          job.State = State.calculating;
     426        }
    424427        if (job.State != State.calculating) {
    425428          response.Success = false;
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/JobManager.cs

    r1770 r1772  
    239239
    240240        Job job = jobAdapter.GetById(jobId);
    241         if (requested && job.State == State.requestSnapshot) {
     241        if (requested && (job.State == State.requestSnapshot || job.State == State.requestSnapshotSent)) {
    242242          response.Success = true;
    243243          response.StatusMessage = ApplicationConstants.RESPONSE_JOB_RESULT_NOT_YET_HERE;
Note: See TracChangeset for help on using the changeset viewer.