Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/25/09 13:54:15 (15 years ago)
Author:
svonolfe
Message:

Further avoided out of memory exceptions by updating the JobResult DAO (#372)

File:
1 edited

Legend:

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

    r2092 r2099  
    4848
    4949    public JobState JobState(Guid guid) {
    50       ResponseObject<JobResult> response = SavelyExecute(() => executionEngine.GetLastResult(guid, false));
     50      ResponseObject<SerializedJobResult> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false));
    5151      if (response != null && response.Success == true &&
    5252        (response.StatusMessage == ApplicationConstants.RESPONSE_JOB_RESULT_NOT_YET_HERE ||
     
    6666
    6767    public byte[] TryEndExecuteEngine(Guid guid) {
    68       ResponseObject<JobResult> response = SavelyExecute(() => executionEngine.GetLastResult(guid, false));
     68      ResponseObject<SerializedJobResult> response = SavelyExecute(() => executionEngine.GetLastSerializedResult(guid, false));
    6969      if (response != null &&
    7070        response.Success && response.Obj != null) {
    71         HeuristicLab.Hive.Engine.Job restoredJob = (HeuristicLab.Hive.Engine.Job)PersistenceManager.RestoreFromGZip(response.Obj.Result);
     71        HeuristicLab.Hive.Engine.Job restoredJob = (HeuristicLab.Hive.Engine.Job)PersistenceManager.RestoreFromGZip(response.Obj.SerializedJobResultData);
    7272        // only return the engine when it wasn't canceled (result is only a snapshot)
    7373        if (!restoredJob.Engine.Canceled) {
Note: See TracChangeset for help on using the changeset viewer.