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/DefaultScheduler.cs

    r4060 r4116  
    2626    public bool ExistsJobForClient(HeuristicLab.Hive.Contracts.BusinessObjects.HeartBeatData hbData) {
    2727      List<JobDto> allOfflineJobsForClient =
    28         new List<JobDto>(DaoLocator.JobDao.FindFittingJobsForClient(State.offline, hbData.FreeCores, hbData.FreeMemory,
     28        new List<JobDto>(DaoLocator.JobDao.FindFittingJobsForClient(State.Offline, hbData.FreeCores, hbData.FreeMemory,
    2929                                                                    hbData.ClientId));
    3030      return (allOfflineJobsForClient != null && allOfflineJobsForClient.Count > 0);
     
    3838        ClientDto client = DaoLocator.ClientDao.FindById(clientId);
    3939        LinkedList<JobDto> allOfflineJobsForClient =
    40           new LinkedList<JobDto>(DaoLocator.JobDao.FindFittingJobsForClient(State.offline, client.NrOfFreeCores,
     40          new LinkedList<JobDto>(DaoLocator.JobDao.FindFittingJobsForClient(State.Offline, client.NrOfFreeCores,
    4141                                                                            client.FreeMemory, client.Id));       
    4242        if (allOfflineJobsForClient != null && allOfflineJobsForClient.Count > 0) {
    4343          jobToCalculate = allOfflineJobsForClient.First.Value;
    44           jobToCalculate.State = State.calculating;
     44          jobToCalculate.State = State.Calculating;
    4545          jobToCalculate.Client = client;
    46           jobToCalculate.Client.State = State.calculating;
     46          jobToCalculate.Client.State = State.Calculating;
    4747          jobToCalculate.DateCalculated = DateTime.Now;
    4848          DaoLocator.JobDao.AssignClientToJob(client.Id, jobToCalculate.Id);
Note: See TracChangeset for help on using the changeset viewer.