Changeset 5000 for branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.ExecutionEngine
- Timestamp:
- 11/30/10 15:58:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.ExecutionEngine/3.3/Executor.cs
r4810 r5000 29 29 using HeuristicLab.Hive.Slave.Common; 30 30 using HeuristicLab.Persistence.Core; 31 using System.Threading; 31 32 32 33 namespace HeuristicLab.Hive.Slave.ExecutionEngine { … … 47 48 } 48 49 public MessageQueue Queue { get; set; } 49 50 50 51 public ExecutionState ExecutionState { 51 52 get { … … 62 63 public DateTime CreationTime { get; set; } 63 64 64 /// <summary>65 ///66 /// </summary>67 65 /// <param name="serializedJob"></param> 68 66 /// <param name="collectChildJobs">if true, all child-jobs are downloaded and the job will be resumed.</param> … … 198 196 199 197 if (Job.ExecutionState == Core.ExecutionState.Started) { 198 try { Job.Stop(); } 199 catch { } 200 } 201 202 if (Job.ExecutionState == Core.ExecutionState.Started) { 200 203 throw new InvalidStateException("Job is still running"); //Job isn't finished! 201 204 } else { … … 223 226 224 227 public void Dispose() { 225 if (Job != null)228 if (Job != null) 226 229 DeregisterJobEvents(); 227 230 Queue = null;
Note: See TracChangeset
for help on using the changeset viewer.