Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/02/11 17:56:52 (13 years ago)
Author:
ascheibe
Message:

#1233

  • Executor now sends all exceptions to the ExperimentManager as NetNamedPipe communication won't be possible in a Sandbox due to security constraints
  • count stopped and aborted jobs correctly
  • send correct status when a job is stopped by the ExperimentManager
  • try to log unhandled exceptions to gui if no EventLog is available
  • don't crash if job is sent more than once by server
File:
1 edited

Legend:

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

    r6004 r6100  
    9898      SendHeartbeatForExecutor = false;
    9999      if (Job == null) {
    100         SlaveClientCom.Instance.ClientCom.LogMessage("Pausing job: Job is null");
     100        currentException = new Exception("Pausing job " + this.JobId + ": Job is null");
    101101        Core.EnqueueExecutorMessage(Core.KillAppDomain, JobId);
    102102      }
     
    109109        }
    110110        catch (Exception ex) {
    111           SlaveClientCom.Instance.ClientCom.LogMessage("Error pausing job:" + ex.ToString());
     111          currentException = new Exception("Error pausing job " + this.JobId + ": " + ex.ToString());
    112112        }
    113113      }
     
    117117      SendHeartbeatForExecutor = false;
    118118      if (Job == null) {
    119         SlaveClientCom.Instance.ClientCom.LogMessage("Stopping job: Job is null");
     119        currentException = new Exception("Stopping job " + this.JobId + ": Job is null");
    120120        Core.EnqueueExecutorMessage(Core.KillAppDomain, JobId);
    121121      }
     
    128128        }
    129129        catch (Exception ex) {
    130           SlaveClientCom.Instance.ClientCom.LogMessage("Error stopping job:" + ex.ToString());
     130          currentException = new Exception("Error stopping job " + this.JobId + ": " + ex.ToString());
    131131        }
    132132      }
     
    207207    public JobData GetFinishedJob() {
    208208      if (Job == null) {
    209         SlaveClientCom.Instance.ClientCom.LogMessage("Getting finished job: Job is null");
     209        if (currentException == null) {
     210          currentException = new Exception("Getting finished job " + this.JobId + ": Job is null");
     211        }
    210212        Core.EnqueueExecutorMessage(Core.KillAppDomain, JobId);
    211213      }
     
    218220        }
    219221        catch (Exception ex) {
    220           SlaveClientCom.Instance.ClientCom.LogMessage("Error stopping job:" + ex.ToString());
     222          currentException = new Exception("Error getting finished job " + this.JobId + ": " + ex.ToString());
    221223        }
    222224      }
Note: See TracChangeset for help on using the changeset viewer.