Author: cwiklik Date: Wed Aug 28 20:27:32 2019 New Revision: 1866046 URL: http://svn.apache.org/viewvc?rev=1866046&view=rev Log: UIMA-6082 Backed out changes to determine if scheduling class is invalid. RM is now responsible for validation
Modified: uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/event/AgentEventListener.java Modified: uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/event/AgentEventListener.java URL: http://svn.apache.org/viewvc/uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/event/AgentEventListener.java?rev=1866046&r1=1866045&r2=1866046&view=diff ============================================================================== --- uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/event/AgentEventListener.java (original) +++ uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/event/AgentEventListener.java Wed Aug 28 20:27:32 2019 @@ -129,18 +129,7 @@ public class AgentEventListener implemen IDuccWorkExecutable dwe = (IDuccWorkExecutable) dw; boolean preemptable = true; - - try { - // this may fail if scheduling class is wrong - preemptable = dw.getPreemptableStatus(); - } catch (Exception e) { - // tag the process as failed so the reconciler does not - // try to launch the process. Instead agent will publish - // this process as Failed - process.setProcessState(ProcessState.Failed); - logger.info("onDuccJobsStateEvent", jobDeployment.getJobId(), ">>>>>>>>>>>> " - + " Unable to Determine Scheduling Class for Ducc Process: " + process.getDuccId()); - } + preemptable = dw.getPreemptableStatus(); // agent will check the state of JP // process and either start, stop,