Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/20/11 16:57:04 (13 years ago)
Author:
ascheibe
Message:

#1233

  • fixed Admin Views plugin dependencies
  • use settings instead of magic numbers and strings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Executor.cs

    r6419 r6456  
    2222using System;
    2323using System.Threading;
     24using HeuristicLab.Clients.Hive.SlaveCore.Properties;
    2425using HeuristicLab.Common;
    2526using HeuristicLab.Core;
     
    8384
    8485        job.Start();
    85         if (!jobStartedSem.WaitOne(TimeSpan.FromSeconds(25))) {
     86        if (!jobStartedSem.WaitOne(TimeSpan.FromSeconds(Settings.Default.ExecutorSemTimeouts))) {
    8687          jobDataInvalid = true;
    8788          throw new TimeoutException("Timeout when starting the job. JobStarted event was not fired.");
     
    9899      IsPausing = true;
    99100      // 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);
    101102      if (job == null) {
    102103        currentException = new Exception("Pausing job " + this.JobId + ": Job is null");
     
    119120      IsStopping = true;
    120121      // 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);
    122123      if (job == null) {
    123124        currentException = new Exception("Stopping job " + this.JobId + ": Job is null");
Note: See TracChangeset for help on using the changeset viewer.