Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/10/11 17:58:59 (13 years ago)
Author:
cneumuel
Message:

#1233

  • added semaphores to ensure an appdomain is never unloaded when the start method has not finished
  • HiveEngine uploading and downloading of jobs works and is displayed in the view
File:
1 edited

Legend:

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

    r6168 r6178  
    8989        } else {
    9090          Job.Start();
    91           startJobSem.WaitOne();
     91          if (!startJobSem.WaitOne(TimeSpan.FromSeconds(15))) {
     92            throw new TimeoutException("Timeout when starting the job. JobStarted event was not fired.");
     93          }
    9294        }
    9395      }
    9496      catch (Exception e) {
    9597        this.currentException = e;
    96         Job_JobFailed(this, new HeuristicLab.Common.EventArgs<Exception>(e));
     98        Job_JobFailed(this, new EventArgs<Exception>(e));
    9799      }
    98100    }
Note: See TracChangeset for help on using the changeset viewer.