Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/03/20 15:42:31 (4 years ago)
Author:
jkarder
Message:

#3060: merged r17445 into stable

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Clients.Hive.Slave

  • stable/HeuristicLab.Clients.Hive.Slave/3.3/Executor.cs

    r17181 r17468  
    4646    public bool IsStopping { get; set; }
    4747    public bool IsPausing { get; set; }
     48    public bool HasFailed { get; set; }
    4849
    4950    public Exception CurrentException;
     
    8485
    8586        task.Start();
    86         if (!startTaskSem.WaitOne(Settings.Default.ExecutorSemTimeouts)) {
     87        if (!startTaskSem.WaitOne(Settings.Default.ExecutorSemTimeouts) && !HasFailed) {
    8788          throw new TimeoutException("Timeout when starting the task. TaskStarted event was not fired.");
    8889        }
     
    159160    #region Task Events
    160161    private void Task_TaskFailed(object sender, EventArgs e) {
     162      HasFailed = true;
    161163      IsStopping = true;
    162164      EventArgs<Exception> ex = (EventArgs<Exception>)e;
    163165      CurrentException = ex.Value;
    164166      executorQueue.AddMessage(ExecutorMessageType.TaskFailed);
     167      startTaskSem.Set(); // cancel waiting for startup
    165168    }
    166169
Note: See TracChangeset for help on using the changeset viewer.