Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/13/10 14:13:15 (13 years ago)
Author:
cneumuel
Message:

#1260

  • moved all state-information into lifecycleManager
  • changed isolation level for transactions to ReadCommited
  • made currentlyFetching-status on slave more rubust
  • made LogServiceReader more rubust
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3/JobDao.cs

    r5037 r5093  
    4040
    4141    public IEnumerable<JobDto> FindAll() {
    42       return (from job in Context.Jobs
    43               select EntityToDto(job, null)).ToList();
     42      return (from job in Context.Jobs select EntityToDto(job, null)).ToArray();
    4443    }
    4544
     
    142141    public IEnumerable<JobDto> FindJobsWithFinishedChilds(Guid slaveId) {
    143142      SlaveGroupDao cgd = new SlaveGroupDao();
    144      
     143
    145144      List<Guid> idList = new List<Guid>(cgd.FindAllGroupAndParentGroupIdsForSlave(slaveId));
    146145      //Add myself too - enables jobs for one specific host!
     
    151150                    (from child in Context.Jobs
    152151                     where child.ParentJobId == ar.Job.JobId
    153                      select 
     152                     select
    154153                      (child.JobState == Enum.GetName(typeof(JobState), JobState.Finished) ||
    155154                       child.JobState == Enum.GetName(typeof(JobState), JobState.Failed) ||
     
    258257      target.ParentJobId = source.ParentJobId;
    259258     
     259
    260260      foreach (Guid assignRessourceId in source.AssignedResourceIds) {
    261261        if (!target.AssignedResources.Select(x => x.ResourceId).Contains(assignRessourceId)) {
Note: See TracChangeset for help on using the changeset viewer.