Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/27/10 18:36:36 (14 years ago)
Author:
cneumuel
Message:

worked on HiveExperiment (#1115)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/JobManager.cs

    r4107 r4116  
    6666        List<JobDto> allJobs = new List<JobDto>(DaoLocator.JobDao.FindAll());
    6767        foreach (JobDto curJob in allJobs) {
    68           if (curJob.State != State.calculating && curJob.State != State.finished) {
     68          if (curJob.State != State.Calculating && curJob.State != State.Finished) {
    6969            DaoLocator.JobDao.SetJobOffline(curJob);
    7070          }
     
    170170
    171171      if (job != null && job.JobInfo != null) {
    172         if (job.JobInfo.State != State.offline) {
     172        if (job.JobInfo.State != State.Offline) {
    173173          response.Success = false;
    174174          response.StatusMessage = ApplicationConstants.RESPONSE_JOB_JOBSTATE_MUST_BE_OFFLINE;
     
    242242
    243243      //if it's a snapshot but the result hasn't reached the server yet...
    244       if (snapshot && (job.State == State.requestSnapshot || job.State == State.requestSnapshotSent)) {
     244      if (snapshot && (job.State == State.RequestSnapshot || job.State == State.RequestSnapshotSent)) {
    245245        response.Success = true;
    246246        response.StatusMessage = ApplicationConstants.RESPONSE_JOB_RESULT_NOT_YET_HERE;
     
    250250
    251251      //if it's NOT a snapshot, NEITHER request NOR is it finished
    252       if (!requested && !snapshot && job.State != State.finished) {
     252      if (!requested && !snapshot && job.State != State.Finished) {
    253253        response.Success = true;
    254254        response.StatusMessage = ApplicationConstants.RESPONSE_JOB_RESULT_NOT_YET_HERE;
     
    273273
    274274      JobDto job = DaoLocator.JobDao.FindById(jobId);
    275       if (job.State == State.requestSnapshot || job.State == State.requestSnapshotSent) {
     275      if (job.State == State.RequestSnapshot || job.State == State.RequestSnapshotSent) {
    276276        response.Success = true;
    277277        response.StatusMessage = ApplicationConstants.RESPONSE_JOB_REQUEST_ALLREADY_SET;
    278278        return response;
    279279      }
    280       if (job.State != State.calculating) {
     280      if (job.State != State.Calculating) {
    281281        response.Success = false;
    282282        response.StatusMessage = ApplicationConstants.RESPONSE_JOB_IS_NOT_BEEING_CALCULATED;
     
    284284      }
    285285      // job is in correct state
    286       job.State = State.requestSnapshot;
     286      job.State = State.RequestSnapshot;
    287287      DaoLocator.JobDao.Update(job);
    288288
     
    302302        return response; // no commit needed
    303303      }
    304       if (job.State == State.abort) {
     304      if (job.State == State.Abort) {
    305305        response.Success = true;
    306306        response.StatusMessage = ApplicationConstants.RESPONSE_JOB_ABORT_REQUEST_ALLREADY_SET;
    307307        return response; // no commit needed
    308308      }
    309       if (job.State != State.calculating && job.State != State.requestSnapshot && job.State != State.requestSnapshotSent) {
     309      if (job.State != State.Calculating && job.State != State.RequestSnapshot && job.State != State.RequestSnapshotSent) {
    310310        response.Success = false;
    311311        response.StatusMessage = ApplicationConstants.RESPONSE_JOB_IS_NOT_BEEING_CALCULATED;
     
    313313      }
    314314      // job is in correct state
    315       job.State = State.abort;
     315      job.State = State.Abort;
    316316      DaoLocator.JobDao.Update(job);
    317317
Note: See TracChangeset for help on using the changeset viewer.