Changeset 4497 for branches/2.8-stable


Ignore:
Timestamp:
Sep 10, 2008, 9:54:11 AM (15 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1115: Job agent can't execute plug-ins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8-stable/src/clients/jobagent/net/sf/basedb/clients/jobagent/executors/ThreadJobExecutor.java

    r4478 r4497  
    9090      dc = sc.newDbControl();
    9191     
    92       // Load a fresh copy of the job item
     92      // Load a fresh copy of the job item and settings
    9393      job = Job.getById(dc, job.getId());
     94      settings = JobAgentSettings.getById(dc, settings.getId()); 
    9495      PluginExecutionRequest exec = null;
    9596     
     
    9798      {
    9899        exec = job.execute(null, Application.getHostName(), settings);
     100        exec.registerSignalReceiver(signalReceiver);
    99101      }
    100102      catch (Throwable t)
     
    104106        log.error("Error executing job: " + job, t);
    105107      }
    106       exec.registerSignalReceiver(signalReceiver);
    107108      dc.commit();
     109      if (exec == null) return;
    108110
    109111      PluginResponse response = exec.invoke();
Note: See TracChangeset for help on using the changeset viewer.