Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/23/09 11:35:41 (16 years ago)
Author:
svonolfe
Message:

Avoid out of memory exceptions related to job objects (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Grid.HiveBridge/3.2/HiveGridServerWrapper.cs

    r2078 r2082  
    8989    }
    9090
    91     private HeuristicLab.Hive.Contracts.BusinessObjects.Job CreateJobObj(byte[] serializedEngine) {
     91    private HeuristicLab.Hive.Contracts.BusinessObjects.ComputableJob CreateJobObj(byte[] serializedEngine) {
    9292      HeuristicLab.Hive.Contracts.BusinessObjects.Job jobObj = new HeuristicLab.Hive.Contracts.BusinessObjects.Job();
    9393
     
    111111      stream.Close();
    112112
    113       jobObj.SerializedJob = memStream.ToArray();
     113      ComputableJob computableJob =
     114        new ComputableJob();
     115      computableJob.SerializedJob = memStream.ToArray();
    114116      jobObj.CoresNeeded = 1;
    115117      jobObj.PluginsNeeded = requiredPlugins;
    116118      jobObj.State = HeuristicLab.Hive.Contracts.BusinessObjects.State.offline;
    117       return jobObj;
     119
     120      computableJob.JobInfo = jobObj;
     121
     122      return computableJob;
    118123    }
    119124
Note: See TracChangeset for help on using the changeset viewer.