Changeset 6456 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
- Timestamp:
- 06/20/11 16:57:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs
r6419 r6456 22 22 using System; 23 23 using System.Threading; 24 using HeuristicLab.Clients.Hive.SlaveCore.Properties; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Core; … … 83 84 84 85 job.Start(); 85 if (!jobStartedSem.WaitOne(TimeSpan.FromSeconds( 25))) {86 if (!jobStartedSem.WaitOne(TimeSpan.FromSeconds(Settings.Default.ExecutorSemTimeouts))) { 86 87 jobDataInvalid = true; 87 88 throw new TimeoutException("Timeout when starting the job. JobStarted event was not fired."); … … 98 99 IsPausing = true; 99 100 // wait until job is started. if this does not happen, the Job is null an we give up 100 jobStartedSem.WaitOne( TimeSpan.FromSeconds(15));101 jobStartedSem.WaitOne(Settings.Default.ExecutorSemTimeouts); 101 102 if (job == null) { 102 103 currentException = new Exception("Pausing job " + this.JobId + ": Job is null"); … … 119 120 IsStopping = true; 120 121 // wait until job is started. if this does not happen, the Job is null an we give up 121 jobStartedSem.WaitOne( TimeSpan.FromSeconds(15));122 jobStartedSem.WaitOne(Settings.Default.ExecutorSemTimeouts); 122 123 if (job == null) { 123 124 currentException = new Exception("Stopping job " + this.JobId + ": Job is null");
Note: See TracChangeset
for help on using the changeset viewer.