Reoccuring jobs are not triggered after stop and restart Quartz scheduler application

6 views
Skip to first unread message

Bob Chen

unread,
Jun 5, 2019, 2:59:13 AM6/5/19
to terracotta-oss
  1. What version of Terracotta Server you are currently using;
  2. Paste the configuration you are using;
  3. Providing JDK and OS versions maybe useful as well.

Hi,

When I schedule reoccuring jobs, it works. But after I stop and restart scheduler application, the remaining jobs are not trigger any more.

I am using Quartz 2.2.3
   <groupId>org.quartz-scheduler.internal</groupId>
  <artifactId>quartz-core</artifactId>
  <version>2.2.3</version>

Below is the properties and how I create Quartz scheduler instance.
I am using Java 1.8.

How I can solve this problem?  Please help.

Best regards

Bob
       

Properties props = new Properties();
String jndiname = "unmanageddatasource:" + aname;
props.setProperty("org.quartz.dataSource.MYDS.jndiURL", jndiname  );

logger.debug("Quartz URL: " + jndiname);
props.setProperty("org.quartz.scheduler.instanceName", currentTenantId);
props.setProperty("org.quartz.threadPool.class", "org.quartz.simpl.SimpleThreadPool");

props.setProperty("org.quartz.threadPool.threadCount", "10");

props.setProperty("org.quartz.scheduler.instanceId", "AUTO");
props.setProperty("org.quartz.jobStore.misfireThreshold", "60000");
props.setProperty("org.quartz.threadPool.threadPriority", "5");
props.setProperty("org.quartz.jobStore.class", "org.quartz.impl.jdbcjobstore.JobStoreTX");
props.setProperty("org.quartz.jobStore.driverDelegateClass", "org.quartz.impl.jdbcjobstore.StdJDBCDelegate");
props.setProperty("org.quartz.jobStore.tablePrefix", "QRTZ_");
props.setProperty("org.quartz.jobStore.dataSource", "MYDS");

SchedulerFactory schedFact = new org.quartz.impl.StdSchedulerFactory(props);
logger.debug("Scheduler Factory: " + schedFact.toString());
scheduler = schedFact.getScheduler();
Reply all
Reply to author
Forward
0 new messages