Changeset 6004 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
- Timestamp:
- 04/11/11 20:57:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
r5826 r6004 38 38 private Semaphore pauseStopSem = new Semaphore(0, 1); 39 39 40 public bool SendHeartbeatForExecutor { get; set; } 41 40 42 public bool Aborted { get; set; } 43 44 public DateTime CreationTime { get; set; } 41 45 42 46 private Exception currentException; … … 63 67 } 64 68 65 public DateTime CreationTime { get; set; } 69 public Executor() { 70 SendHeartbeatForExecutor = true; 71 } 66 72 67 73 /// <param name="serializedJob"></param> … … 90 96 91 97 public void Pause() { 98 SendHeartbeatForExecutor = false; 92 99 if (Job == null) { 93 100 SlaveClientCom.Instance.ClientCom.LogMessage("Pausing job: Job is null"); … … 108 115 109 116 public void Stop() { 117 SendHeartbeatForExecutor = false; 110 118 if (Job == null) { 111 119 SlaveClientCom.Instance.ClientCom.LogMessage("Stopping job: Job is null"); … … 181 189 182 190 private void Job_JobFailed(object sender, EventArgs e) { 183 //TODO: get exception to client184 191 HeuristicLab.Common.EventArgs<Exception> ex = (HeuristicLab.Common.EventArgs<Exception>)e; 185 192 currentException = ex.Value; … … 241 248 } 242 249 243 public Executor() {244 }245 246 250 public void Dispose() { 247 251 if (Job != null)
Note: See TracChangeset
for help on using the changeset viewer.