hi, everyone !

Now, In the api server, on-line and off-line tasks depend on quartz scheduler.
QuartzExecutors.getInstance().addJob(ProcessScheduleJob.class, jobName, 
jobGroupName, startDate, endDate, schedule.getCrontab(), dataMap);
if(!QuartzExecutors.getInstance().deleteJob(jobName, jobGroupName)){ 
logger.warn("set offline 
failure:projectId:{},scheduleId:{}",projectId,scheduleId); throw new 
RuntimeException(String.format("set offline failure")); }
QuartzExecutors.getInstance():
SchedulerFactory schedulerFactory = new 
StdSchedulerFactory(Constants.QUARTZ_PROPERTIES_PATH); scheduler = 
schedulerFactory.getScheduler();
org.quartz.threadPool.threadCount = 25
25 worker threads are initialized by default.
These threads will never be used.


I didn't think about how to solve it, welcome to discuss.

Reply via email to