Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6248 for branches


Ignore:
Timestamp:
05/23/11 11:26:27 (13 years ago)
Author:
ascheibe
Message:

#1233

  • don't set job failed if JobNotFoundException is thrown
  • disable AboutView for all items
  • avoid NullRefException in SendFinishedJob
Location:
branches/HeuristicLab.Hive-3.4/sources
Files:
3 edited

Legend:

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

    r6230 r6248  
    2828namespace HeuristicLab.Clients.Hive.SlaveCore.Views {
    2929  [View("AboutView: Show some information about HeursticLab Hive")]
    30   [Content(typeof(Item), IsDefaultView = false)]
    3130  public partial class AboutView : ItemView {
    3231    public new Item Content {
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/Core.cs

    r6216 r6248  
    150150              // handle exception of task
    151151              clientCom.LogMessage(t.Exception.ToString());
    152               wcfService.UpdateJobState(container.JobId, JobState.Failed, t.Exception.ToString());
    153               SlaveStatusInfo.IncrementJobsFailed();
     152              if (t.Exception.GetType() != typeof(JobNotFoundException)) {
     153                wcfService.UpdateJobState(container.JobId, JobState.Waiting, t.Exception.ToString());
     154                SlaveStatusInfo.IncrementJobsFailed();
     155              }
    154156            }, TaskContinuationOptions.OnlyOnFaulted);
    155157            break;
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/SlaveJob.cs

    r6216 r6248  
    165165        try {
    166166          JobData sJob = executor.GetFinishedJob();
    167           clientCom.LogMessage(string.Format("Sending the finished job with id: {0}", JobId));
    168           wcfService.UpdateJobData(job, sJob, ConfigManager.Instance.GetClientInfo().Id, JobState.Finished);
     167          if (sJob != null) {
     168            clientCom.LogMessage(string.Format("Sending the finished job with id: {0}", JobId));
     169            wcfService.UpdateJobData(job, sJob, ConfigManager.Instance.GetClientInfo().Id, JobState.Finished);
     170          }
    169171        }
    170172        catch (Exception e) {
     
    210212      if (pluginsPrepared) {
    211213        try {
    212           appDomain = HeuristicLab.PluginInfrastructure.Sandboxing.SandboxManager.CreateAndInitSandbox(job.Id.ToString(), pluginDir, Path.Combine(pluginDir, configFileName));
     214          appDomain = HeuristicLab.PluginInfrastructure.Sandboxing.SandboxManager.CreateAndInitPrivilegedSandbox(job.Id.ToString(), pluginDir, Path.Combine(pluginDir, configFileName));
    213215          appDomain.UnhandledException += new UnhandledExceptionEventHandler(AppDomain_UnhandledException);
    214216
Note: See TracChangeset for help on using the changeset viewer.