Changeset 6100 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
- Timestamp:
- 05/02/11 17:56:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
r6004 r6100 98 98 SendHeartbeatForExecutor = false; 99 99 if (Job == null) { 100 SlaveClientCom.Instance.ClientCom.LogMessage("Pausing job: Job is null");100 currentException = new Exception("Pausing job " + this.JobId + ": Job is null"); 101 101 Core.EnqueueExecutorMessage(Core.KillAppDomain, JobId); 102 102 } … … 109 109 } 110 110 catch (Exception ex) { 111 SlaveClientCom.Instance.ClientCom.LogMessage("Error pausing job:" + ex.ToString());111 currentException = new Exception("Error pausing job " + this.JobId + ": " + ex.ToString()); 112 112 } 113 113 } … … 117 117 SendHeartbeatForExecutor = false; 118 118 if (Job == null) { 119 SlaveClientCom.Instance.ClientCom.LogMessage("Stopping job: Job is null");119 currentException = new Exception("Stopping job " + this.JobId + ": Job is null"); 120 120 Core.EnqueueExecutorMessage(Core.KillAppDomain, JobId); 121 121 } … … 128 128 } 129 129 catch (Exception ex) { 130 SlaveClientCom.Instance.ClientCom.LogMessage("Error stopping job:" + ex.ToString());130 currentException = new Exception("Error stopping job " + this.JobId + ": " + ex.ToString()); 131 131 } 132 132 } … … 207 207 public JobData GetFinishedJob() { 208 208 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 } 210 212 Core.EnqueueExecutorMessage(Core.KillAppDomain, JobId); 211 213 } … … 218 220 } 219 221 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()); 221 223 } 222 224 }
Note: See TracChangeset
for help on using the changeset viewer.