Changeset 5093 for branches/HeuristicLab.Hive-3.3/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.LINQDataAccess/3.3
- Timestamp:
- 12/13/10 14:13:15 (14 years ago)
- 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 40 40 41 41 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(); 44 43 } 45 44 … … 142 141 public IEnumerable<JobDto> FindJobsWithFinishedChilds(Guid slaveId) { 143 142 SlaveGroupDao cgd = new SlaveGroupDao(); 144 143 145 144 List<Guid> idList = new List<Guid>(cgd.FindAllGroupAndParentGroupIdsForSlave(slaveId)); 146 145 //Add myself too - enables jobs for one specific host! … … 151 150 (from child in Context.Jobs 152 151 where child.ParentJobId == ar.Job.JobId 153 select 152 select 154 153 (child.JobState == Enum.GetName(typeof(JobState), JobState.Finished) || 155 154 child.JobState == Enum.GetName(typeof(JobState), JobState.Failed) || … … 258 257 target.ParentJobId = source.ParentJobId; 259 258 259 260 260 foreach (Guid assignRessourceId in source.AssignedResourceIds) { 261 261 if (!target.AssignedResources.Select(x => x.ResourceId).Contains(assignRessourceId)) {
Note: See TracChangeset
for help on using the changeset viewer.