|
|
spring amp; quartz: trigger appears to fire, but job does not run
Hi,
The following used to work, however now no longer does... been working on it for days now!
It appears that the triggers are firing, if I continually refresh the QRTZ_TRIGGERS table, the trigger state of the triggers changes from WAITING to AQUIRED every 5 minutes for a few seconds, then goes back to WAITING. The JOBs however are never run (all the jobs contain is a simple System.out.println(quot;testquot;); The jobs also appear as expected in the database.
No exception is thrown. I have my logs set to DEBUG yet get nothing which provides insight... [see attached]
Any ideas what is going on?Quartz.properties:
#================================================= ================= ==========
# Configure Main Scheduler Properties
#================================================= ========================= ==
org.quartz.scheduler.instanceName = RMTClusteredScheduler
org.quartz.scheduler.instanceId = AUTO
#================================================= ===================== ======
# Configure ThreadPool
#================================================= ========================= ==
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 5
org.quartz.threadPool.threadPriority = 5
#================================================= ===================== ======
# Configure JobStore
#================================================= ========================= ==
org.quartz.jobStore.misfireThreshold = 60000
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
org.quartz.jobStore.useProperties = true
org.quartz.jobStore.tablePrefix = QRTZ_
org.quartz.jobStore.isClustered = true
org.quartz.jobStore.clusterCheckinInterval = 20000schedulingContext-quartz.xml:
lt;beansgt;
lt;bean id=quot;schedulerquot; class=quot;org..scheduling.quartz.Sched ulerFactoryBeanquot; lazy-init=quot;falsequot;gt;
lt;property name=quot;triggersquot;gt;
lt;listgt;
lt;ref local=quot;regionalMembershipsTriggerquot;/gt;
lt;ref local=quot;validateRunsTriggerquot;/gt;
lt;/listgt;
lt;/propertygt;
lt;property name=quot;dataSourcequot;gt;
lt;ref bean=quot;dataSourcequot;/gt;
lt;/propertygt;
lt;property name=quot;nonTransactionalDataSourcequot;gt;
lt;ref bean=quot;nonTxDataSourcequot;/gt;
lt;/propertygt;
lt;property name=quot;transactionManagerquot;gt;
lt;ref bean=quot;transactionManagerquot;/gt;
lt;/propertygt;
lt;property name=quot;configLocationquot;gt;
lt;valuegt;classpath:quartz.propertieslt;/valuegt;
lt;/propertygt;
lt;property name=quot;applicationContextSchedulerContextKeyquot;gt;
lt;valuegt;applicationContextlt;/valuegt;
lt;/propertygt;
lt;/beangt;lt;bean id=quot;regionalMembershipsJobDetailquot; class=quot;org..scheduling.quartz.JobDe tailBeanquot;gt;
lt;property name=quot;jobClassquot; value=quot;scheduling.RegionalMembershipsQuartzJobquot;/gt;
lt;property name=quot;jobDataAsMapquot;gt;
lt;mapgt;
lt;entry key=quot;applicationContextKeyquot; value=quot;applicationContextquot;/gt;
lt;/mapgt;
lt;/propertygt;
lt;/beangt;
lt;bean id=quot;regionalMembershipsTriggerquot; class=quot;org..scheduling.quartz.CronT riggerBeanquot;gt;
lt;property name=quot;jobDetailquot; ref=quot;regionalMembershipsJobDetailquot;/gt;
lt;property name=quot;cronExpressionquot; value=quot;0 0/5 * * * ?quot;/gt;
lt;/beangt;lt;bean id=quot;validateRunsJobDetailquot; class=quot;org..scheduling.quartz.JobDe tailBeanquot;gt;
lt;property name=quot;jobClassquot; value=quot;scheduling.ValidateRunsQuartzJobquot;/gt;
lt;property name=quot;jobDataAsMapquot;gt;
lt;mapgt;
lt;entry key=quot;applicationContextKeyquot; value=quot;applicationContextquot;/gt;
lt;/mapgt;
lt;/propertygt;
lt;/beangt;
lt;bean id=quot;validateRunsTriggerquot; class=quot;org..scheduling.quartz.CronT riggerBeanquot;gt;
lt;property name=quot;jobDetailquot; ref=quot;validateRunsJobDetailquot;/gt;
lt;property name=quot;cronExpressionquot; value=quot;30 0/8 * * * ?quot;/gt;
lt;/beangt;
lt;/beansgt; |
|