Changeset 5450 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
- Timestamp:
- 02/07/11 11:44:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
r5314 r5450 35 35 public IJob Job { get; set; } 36 36 private bool wasJobAborted = false; 37 public Core core { get; set; }37 public Core Core { get; set; } 38 38 39 39 private Exception currentException; … … 84 84 } 85 85 86 public void StartOnlyJob() { 87 try { 88 Job.Start(); 89 } 90 catch (Exception e) { 91 this.currentException = e; 92 } 86 public void Pause() { 87 Job.Pause(); 88 93 89 } 94 90 95 public void Pause() { 96 Job.Pause(); 97 } 98 99 public void Abort() { 91 public void Stop() { 100 92 wasJobAborted = true; 101 93 if ((ExecutionState == ExecutionState.Started) || (ExecutionState == ExecutionState.Paused)) { … … 153 145 jdata.JobId = this.JobId; 154 146 155 core.PauseJob(jdata);147 Core.PauseWaitJob(jdata); 156 148 } 157 149 … … 164 156 HeuristicLab.Common.EventArgs<Exception> ex = (HeuristicLab.Common.EventArgs<Exception>)e; 165 157 currentException = ex.Value; 166 core.SendFinishedJob(JobId);158 Core.SendFinishedJob(JobId); 167 159 } 168 160 169 161 private void Job_JobStopped(object sender, EventArgs e) { 170 162 if (wasJobAborted) { 171 core.KillAppDomain(JobId);163 Core.KillAppDomain(JobId); 172 164 } else { 173 core.SendFinishedJob(JobId);165 Core.SendFinishedJob(JobId); 174 166 } 175 167 }
Note: See TracChangeset
for help on using the changeset viewer.