Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/09 13:05:47 (15 years ago)
Author:
svonolfe
Message:

Implemented job assignment to resources (#507)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Scheduler/3.2/DefaultScheduler.cs

    r1530 r2066  
    3030          session.GetDataAdapter<Job, IJobAdapter>();
    3131
    32         List<Job> allOfflineJobsForClient = new List<Job>(jobAdapter.FindJobs(State.offline, hbData.FreeCores, hbData.FreeMemory));
     32        List<Job> allOfflineJobsForClient = new List<Job>(
     33          jobAdapter.FindJobs(State.offline,
     34          hbData.FreeCores,
     35          hbData.FreeMemory,
     36          hbData.ClientId));
    3337        return (allOfflineJobsForClient != null && allOfflineJobsForClient.Count > 0);
    3438      }
     
    5357
    5458        ClientInfo client = clientAdapter.GetById(clientId);
    55         LinkedList<Job> allOfflineJobsForClient = new LinkedList<Job>(jobAdapter.FindJobs(State.offline, client.NrOfFreeCores, client.FreeMemory ));
     59        LinkedList<Job> allOfflineJobsForClient = new LinkedList<Job>(
     60          jobAdapter.FindJobs(State.offline,
     61          client.NrOfFreeCores,
     62          client.FreeMemory,
     63          client.Id));
    5664
    5765        Job jobToCalculate = null;
Note: See TracChangeset for help on using the changeset viewer.