Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1812


Ignore:
Timestamp:
05/14/09 16:55:47 (16 years ago)
Author:
kgrading
Message:

changed job restart behaviour - the job will now be restarted when the serialization is done, not before (#571)

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Communication/3.2/WcfService.cs

    r1635 r1812  
    249249    #endregion  */
    250250
    251     public ResponseResultReceived SendStoredJobResultsSync(Guid clientId, Guid jobId, byte[] result, double percentage, Exception exception, bool finished) {
     251    public ResponseResultReceived SendStoredJobResultsSync(Guid clientId, Guid jobId, byte[] result, double percentage, Exception exception, bool finished) {     
    252252      return proxy.StoreFinishedJobResult(clientId, jobId, result, percentage, exception);   
     253    }
     254
     255    public ResponseResultReceived ProcessSnapshotSync(Guid clientId, Guid jobId, byte[] result, double percentage, Exception exception) {
     256      try {
     257        ResponseResultReceived res = proxy.ProcessSnapshot(clientId, jobId, result, percentage, null);
     258        Logging.Instance.Info(this.ToString(), "Snapshot for Job " + jobId + " submitted");
     259        return res;
     260      }
     261      catch (Exception e) {
     262        HandleNetworkError(e);
     263        return null;
     264      }
    253265    }
    254266
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/Core.cs

    r1775 r1812  
    192192      Guid jId = (Guid)jobId;
    193193      byte[] obj = engines[jId].GetSnapshot();
    194       wcfService.ProcessSnapshotAsync(ConfigManager.Instance.GetClientInfo().Id,
     194      wcfService.ProcessSnapshotSync(ConfigManager.Instance.GetClientInfo().Id,
    195195        jId,
    196196        obj,
    197197        engines[jId].Progress,
    198         null,
    199         false);
     198        null);
     199      engines[jId].StartOnlyJob();
    200200    }
    201201
  • trunk/sources/HeuristicLab.Hive.Client.ExecutionEngine/3.2/Executor.cs

    r1655 r1812  
    6565    }
    6666
     67    public void StartOnlyJob() {
     68      Job.Start();
     69    }
     70
    6771    public void Abort() {
    6872      CurrentMessage = MessageContainer.MessageType.AbortJob;
     
    8993        byte[] job = SerializeJobObject();       
    9094        // Restart the job
    91         Job.Start();
    9295        // Return the Snapshot
    9396        return job;
Note: See TracChangeset for help on using the changeset viewer.