Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/09 14:33:22 (16 years ago)
Author:
svonolfe
Message:

Added a state to jobs and a message to job results in the db. (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/JobAdapter.cs

    r1029 r1092  
    9292          job.Client = null;
    9393       
    94         if (!row.IsStatusNull())
    95           job.State = (State)Enum.Parse(job.State.GetType(), row.Status);
     94        if (!row.IsJobStateNull())
     95          job.State = (State)Enum.Parse(job.State.GetType(), row.JobState);
    9696        else
    9797          job.State = State.nullState;
     98
     99        if (!row.IsPercentageNull())
     100          job.Percentage = row.Percentage;
     101        else
     102          job.Percentage = 0.0;
    98103
    99104        return job;
     
    124129
    125130        if (job.State != State.nullState)
    126           row.Status = job.State.ToString();
    127         else
    128           row.SetStatusNull();
     131          row.JobState = job.State.ToString();
     132        else
     133          row.SetJobStateNull();
     134
     135        row.Percentage = job.Percentage;
    129136      }
    130137
     
    214221             return from job in
    215222                      cache.AsEnumerable<dsHiveServer.JobRow>()
    216                     where !job.IsStatusNull() &&
    217                            job.Status == state.ToString()
     223                    where !job.IsJobStateNull() &&
     224                           job.JobState == state.ToString()
    218225                    select job;
    219226           });
Note: See TracChangeset for help on using the changeset viewer.