Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/11/11 20:57:29 (13 years ago)
Author:
ascheibe
Message:

#1233

  • fix pause/stop bug when serializing big experiments
  • use proper newlines
  • use GetPlugin(..) instead of GetPlugins()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs

    r5826 r6004  
    3838    private Semaphore pauseStopSem = new Semaphore(0, 1);
    3939
     40    public bool SendHeartbeatForExecutor { get; set; }
     41
    4042    public bool Aborted { get; set; }
     43
     44    public DateTime CreationTime { get; set; }
    4145
    4246    private Exception currentException;
     
    6367    }
    6468
    65     public DateTime CreationTime { get; set; }
     69    public Executor() {
     70      SendHeartbeatForExecutor = true;
     71    }
    6672
    6773    /// <param name="serializedJob"></param>
     
    9096
    9197    public void Pause() {
     98      SendHeartbeatForExecutor = false;
    9299      if (Job == null) {
    93100        SlaveClientCom.Instance.ClientCom.LogMessage("Pausing job: Job is null");
     
    108115
    109116    public void Stop() {
     117      SendHeartbeatForExecutor = false;
    110118      if (Job == null) {
    111119        SlaveClientCom.Instance.ClientCom.LogMessage("Stopping job: Job is null");
     
    181189
    182190    private void Job_JobFailed(object sender, EventArgs e) {
    183       //TODO: get exception to client
    184191      HeuristicLab.Common.EventArgs<Exception> ex = (HeuristicLab.Common.EventArgs<Exception>)e;
    185192      currentException = ex.Value;
     
    241248    }
    242249
    243     public Executor() {
    244     }
    245 
    246250    public void Dispose() {
    247251      if (Job != null)
Note: See TracChangeset for help on using the changeset viewer.