Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1478


Ignore:
Timestamp:
04/02/09 13:15:28 (16 years ago)
Author:
msteinbi
Message:

new properties for Job needed by Scheduler (#507)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Job.cs

    r1377 r1478  
    2626using System.Runtime.Serialization;
    2727using HeuristicLab.DataAccess;
     28using HeuristicLab.PluginInfrastructure;
    2829
    2930namespace HeuristicLab.Hive.Contracts.BusinessObjects {
     
    4950    [DataMember]
    5051    public int Priority { get; set; }
     52    [DataMember]
     53    public int CoresNeeded { get; set; }
     54    [DataMember]
     55    public int MemoryNeeded { get; set; }
     56    [DataMember]
     57    public List<PluginInfo> PluginsNeeded { get; set; }
    5158  }
    5259}
  • trunk/sources/HeuristicLab.Hive.Server.Core/ClientCommunicator.cs

    r1468 r1478  
    104104              if (dif.TotalSeconds > ApplicationConstants.HEARTBEAT_MAX_DIF) {
    105105                // if client calculated jobs, the job must be reset
    106                 if (client.State == State.calculating) {
    107                   // check wich job the client was calculating and reset it
    108                   foreach (Job job in jobAdapter.GetActiveJobsOf(client)) {
    109                     jobManager.ResetJobsDependingOnResults(job);
    110                   }
     106                foreach (Job job in jobAdapter.GetActiveJobsOf(client)) {
     107                  jobManager.ResetJobsDependingOnResults(job);
    111108                }
    112109
     
    161158        heartbeatLock.ExitWriteLock();
    162159
    163         // todo: allClients legacy ?
    164160        ClientInfo client = clientAdapter.GetById(clientInfo.Id);
    165161        if (client != null && client.State != State.offline && client.State != State.nullState) {
     
    488484
    489485    public ResponsePlugin SendPlugins(List<PluginInfo> pluginList) {
     486
     487
    490488      throw new NotImplementedException();
    491489    }
Note: See TracChangeset for help on using the changeset viewer.