Only a single quartz thread being used at a time - multithreading

We are using quartz-scheduler for scheduling around 500 jobs of Run-once type scheduled for the same time. We are observing the following behaviour-
Although there are 10 threads present in quartz scheduler(org.quartz.threadPool.threadCount), only a single worker thread executes sequentially at a particular instance of time eg- if a worker thread-1 is performing a task of processing an event, it would complete it first and then the other thread would start with the same.(This behaviour is observed even when we are not using #DisallowConcurrentExecution annotation)
We wanted to understand why is such behaviour being observed and how can we utilise all the threads that are present in the threadpool to improve the performance.
Parameters used:
clusterCheckinInterval - 120000
isClustered - true
misfireThreshold - 60000
useProperties - false
instanceId - AUTO
threadCount -10
threadPriority - 5
Versions used -
quartz-scheduler - 2.3.2
spring-boot - 1.2.4
spring-context-support - 5.2.1
Logs-
{"ts":"03 23 2021 09:04:00.175","th":"EvtMgrQuartzThread_Worker-7","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:04:00 UTC 2021 current fire time: Tue Mar 23 09:04:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:27:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:04:00.177","th":"EvtMgrQuartzThread_Worker-7->ThreadContext(ThreadStartTime=2021-03-23 09:04:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 27 current time is: 1616490240177 }
{"ts":"03 23 2021 09:04:00.179","th":"EvtMgrQuartzThread_Worker-7->ThreadContext(ThreadStartTime=2021-03-23 09:04:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 27 current time is: 1616490240179 }
{"ts":"03 23 2021 09:04:00.179","th":"EvtMgrQuartzThread_Worker-7->ThreadContext(ThreadStartTime=2021-03-23 09:04:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 27 current time is: 1616490240179 }
{"ts":"03 23 2021 09:04:00.183","th":"EvtMgrQuartzThread_Worker-7->ThreadContext(ThreadStartTime=2021-03-23 09:04:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 27 current time is: 1616490240183 }
{"ts":"03 23 2021 09:04:00.183","th":"EvtMgrQuartzThread_Worker-7","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:04:00 UTC 2021 current fire time: Tue Mar 23 09:04:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:27:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:04:00.820","th":"EvtMgrQuartzThread_Worker-1","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:04:00 UTC 2021 current fire time: Tue Mar 23 09:04:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:4:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:04:00.821","th":"EvtMgrQuartzThread_Worker-1->ThreadContext(ThreadStartTime=2021-03-23 09:04:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 4 current time is: 1616490240821 }
{"ts":"03 23 2021 09:04:00.822","th":"EvtMgrQuartzThread_Worker-1->ThreadContext(ThreadStartTime=2021-03-23 09:04:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 4 current time is: 1616490240822 }
{"ts":"03 23 2021 09:04:00.822","th":"EvtMgrQuartzThread_Worker-1->ThreadContext(ThreadStartTime=2021-03-23 09:04:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 4 current time is: 1616490240822 }
{"ts":"03 23 2021 09:04:00.826","th":"EvtMgrQuartzThread_Worker-1->ThreadContext(ThreadStartTime=2021-03-23 09:04:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 4 current time is: 1616490240826 }
{"ts":"03 23 2021 09:04:00.827","th":"EvtMgrQuartzThread_Worker-1","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:04:00 UTC 2021 current fire time: Tue Mar 23 09:04:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:4:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:04:01.769","th":"EvtMgrQuartzThread_Worker-4","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:04:00 UTC 2021 current fire time: Tue Mar 23 09:04:01 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:7:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:04:01.770","th":"EvtMgrQuartzThread_Worker-4->ThreadContext(ThreadStartTime=2021-03-23 09:04:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 7 current time is: 1616490241770 }
{"ts":"03 23 2021 09:04:01.772","th":"EvtMgrQuartzThread_Worker-4->ThreadContext(ThreadStartTime=2021-03-23 09:04:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 7 current time is: 1616490241772 }
{"ts":"03 23 2021 09:04:01.772","th":"EvtMgrQuartzThread_Worker-4->ThreadContext(ThreadStartTime=2021-03-23 09:04:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 7 current time is: 1616490241772 }
{"ts":"03 23 2021 09:04:01.784","th":"EvtMgrQuartzThread_Worker-4->ThreadContext(ThreadStartTime=2021-03-23 09:04:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 7 current time is: 1616490241784 }
{"ts":"03 23 2021 09:04:01.784","th":"EvtMgrQuartzThread_Worker-4","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:04:00 UTC 2021 current fire time: Tue Mar 23 09:04:01 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:7:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:04:02.313","th":"EvtMgrQuartzThread_Worker-6","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:04:00 UTC 2021 current fire time: Tue Mar 23 09:04:02 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:8:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:04:02.314","th":"EvtMgrQuartzThread_Worker-6->ThreadContext(ThreadStartTime=2021-03-23 09:04:02)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 8 current time is: 1616490242314 }
{"ts":"03 23 2021 09:04:02.316","th":"EvtMgrQuartzThread_Worker-6->ThreadContext(ThreadStartTime=2021-03-23 09:04:02)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 8 current time is: 1616490242316 }
{"ts":"03 23 2021 09:04:02.316","th":"EvtMgrQuartzThread_Worker-6->ThreadContext(ThreadStartTime=2021-03-23 09:04:02)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 8 current time is: 1616490242316 }
{"ts":"03 23 2021 09:04:02.328","th":"EvtMgrQuartzThread_Worker-6->ThreadContext(ThreadStartTime=2021-03-23 09:04:02)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 8 current time is: 1616490242328 }
{"ts":"03 23 2021 09:04:02.328","th":"EvtMgrQuartzThread_Worker-6","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:04:00 UTC 2021 current fire time: Tue Mar 23 09:04:02 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:8:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:00.103","th":"EvtMgrQuartzThread_Worker-10","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:39:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:00.106","th":"EvtMgrQuartzThread_Worker-10->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 39 current time is: 1616490300106 }
{"ts":"03 23 2021 09:05:00.108","th":"EvtMgrQuartzThread_Worker-10->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 39 current time is: 1616490300108 }
{"ts":"03 23 2021 09:05:00.108","th":"EvtMgrQuartzThread_Worker-10->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 39 current time is: 1616490300108 }
{"ts":"03 23 2021 09:05:00.120","th":"EvtMgrQuartzThread_Worker-10->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 39 current time is: 1616490300120 }
{"ts":"03 23 2021 09:05:00.120","th":"EvtMgrQuartzThread_Worker-10","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:39:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:00.515","th":"EvtMgrQuartzThread_Worker-3","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:43:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:00.516","th":"EvtMgrQuartzThread_Worker-3->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 43 current time is: 1616490300516 }
{"ts":"03 23 2021 09:05:00.518","th":"EvtMgrQuartzThread_Worker-3->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 43 current time is: 1616490300518 }
{"ts":"03 23 2021 09:05:00.518","th":"EvtMgrQuartzThread_Worker-3->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 43 current time is: 1616490300518 }
{"ts":"03 23 2021 09:05:00.525","th":"EvtMgrQuartzThread_Worker-3->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 43 current time is: 1616490300525 }
{"ts":"03 23 2021 09:05:00.525","th":"EvtMgrQuartzThread_Worker-3","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:43:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:00.744","th":"EvtMgrQuartzThread_Worker-8","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:42:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:00.745","th":"EvtMgrQuartzThread_Worker-8->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 42 current time is: 1616490300745 }
{"ts":"03 23 2021 09:05:00.748","th":"EvtMgrQuartzThread_Worker-8->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 42 current time is: 1616490300748 }
{"ts":"03 23 2021 09:05:00.748","th":"EvtMgrQuartzThread_Worker-8->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 42 current time is: 1616490300748 }
{"ts":"03 23 2021 09:05:00.756","th":"EvtMgrQuartzThread_Worker-8->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 42 current time is: 1616490300756 }
{"ts":"03 23 2021 09:05:00.756","th":"EvtMgrQuartzThread_Worker-8","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:42:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:00.965","th":"EvtMgrQuartzThread_Worker-9","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:4:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:00.966","th":"EvtMgrQuartzThread_Worker-9->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 4 current time is: 1616490300966 }
{"ts":"03 23 2021 09:05:00.967","th":"EvtMgrQuartzThread_Worker-9->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 4 current time is: 1616490300967 }
{"ts":"03 23 2021 09:05:00.967","th":"EvtMgrQuartzThread_Worker-9->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 4 current time is: 1616490300967 }
{"ts":"03 23 2021 09:05:00.975","th":"EvtMgrQuartzThread_Worker-9->ThreadContext(ThreadStartTime=2021-03-23 09:05:00)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 4 current time is: 1616490300975 }
{"ts":"03 23 2021 09:05:00.976","th":"EvtMgrQuartzThread_Worker-9","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:00 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:4:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:01.147","th":"EvtMgrQuartzThread_Worker-2","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:01 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:7:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:01.148","th":"EvtMgrQuartzThread_Worker-2->ThreadContext(ThreadStartTime=2021-03-23 09:05:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 7 current time is: 1616490301148 }
{"ts":"03 23 2021 09:05:01.149","th":"EvtMgrQuartzThread_Worker-2->ThreadContext(ThreadStartTime=2021-03-23 09:05:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 7 current time is: 1616490301149 }
{"ts":"03 23 2021 09:05:01.149","th":"EvtMgrQuartzThread_Worker-2->ThreadContext(ThreadStartTime=2021-03-23 09:05:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 7 current time is: 1616490301149 }
{"ts":"03 23 2021 09:05:01.155","th":"EvtMgrQuartzThread_Worker-2->ThreadContext(ThreadStartTime=2021-03-23 09:05:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 7 current time is: 1616490301155 }
{"ts":"03 23 2021 09:05:01.155","th":"EvtMgrQuartzThread_Worker-2","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:01 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:7:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:01.319","th":"EvtMgrQuartzThread_Worker-5","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz started:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:01 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:8:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }
{"ts":"03 23 2021 09:05:01.320","th":"EvtMgrQuartzThread_Worker-5->ThreadContext(ThreadStartTime=2021-03-23 09:05:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Putting keys:WFD-109904 task id is: 8 current time is: 1616490301320 }
{"ts":"03 23 2021 09:05:01.322","th":"EvtMgrQuartzThread_Worker-5->ThreadContext(ThreadStartTime=2021-03-23 09:05:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Put operation completed:WFD-109904 task id is: 8 current time is: 1616490301322 }
{"ts":"03 23 2021 09:05:01.322","th":"EvtMgrQuartzThread_Worker-5->ThreadContext(ThreadStartTime=2021-03-23 09:05:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Sending message :WFD-109904 task id is: 8 current time is: 1616490301322 }
{"ts":"03 23 2021 09:05:01.326","th":"EvtMgrQuartzThread_Worker-5->ThreadContext(ThreadStartTime=2021-03-23 09:05:01)","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Message sent :WFD-109904 task id is: 8 current time is: 1616490301326 }
{"ts":"03 23 2021 09:05:01.327","th":"EvtMgrQuartzThread_Worker-5","tenant":"","user":"null","trxid":"","level":"ERROR","logger":"WFC","msg":Execute method of quartz completed:WFD-109904, scheduled fire time: Tue Mar 23 09:05:00 UTC 2021 current fire time: Tue Mar 23 09:05:01 UTC 2021 JobDetail 'Event Manager:NULL.Event ManagerTask ID:8:NULL': jobClass: 'com.xxx.KJob concurrentExectionDisallowed: false persistJobDataAfterExecution: false isDurable: true requestsRecovers: false }

There is a property to control the number of triggers to acquire at once by single node org.quartz.scheduler.batchTriggerAcquisitionMaxCount, try playing with this number
The maximum number of triggers that a scheduler node is allowed to acquire (for firing) at once. Default value is 1. The larger the number, the more efficient firing is (in situations where there are very many triggers needing to be fired all at once) - but at the cost of possible imbalanced load between cluster nodes. If the value of this property is set to > 1, and JDBC JobStore is used, then the property "org.quartz.jobStore.acquireTriggersWithinLock" must be set to "true" to avoid data corruption.
Link to Documentation
Link to code that acquires triggers

Related

Cannot test transition from DST

I am having issues trying to test transition from DST. This is my timezone:
cat /etc/timezone
Europe/Rome
while this is the output of zdump -v -c 2019,2023 /usr/share/zoneinfo/Europe/Rome:
/usr/share/zoneinfo/Europe/Rome -9223372036854775808 = NULL
/usr/share/zoneinfo/Europe/Rome -9223372036854689408 = NULL
/usr/share/zoneinfo/Europe/Rome Sun Mar 31 00:59:59 2019 UT = Sun Mar 31 01:59:59 2019 CET isdst=0 gmtoff=3600
/usr/share/zoneinfo/Europe/Rome Sun Mar 31 01:00:00 2019 UT = Sun Mar 31 03:00:00 2019 CEST isdst=1 gmtoff=7200
/usr/share/zoneinfo/Europe/Rome Sun Oct 27 00:59:59 2019 UT = Sun Oct 27 02:59:59 2019 CEST isdst=1 gmtoff=7200
/usr/share/zoneinfo/Europe/Rome Sun Oct 27 01:00:00 2019 UT = Sun Oct 27 02:00:00 2019 CET isdst=0 gmtoff=3600
/usr/share/zoneinfo/Europe/Rome Sun Mar 29 00:59:59 2020 UT = Sun Mar 29 01:59:59 2020 CET isdst=0 gmtoff=3600
/usr/share/zoneinfo/Europe/Rome Sun Mar 29 01:00:00 2020 UT = Sun Mar 29 03:00:00 2020 CEST isdst=1 gmtoff=7200
/usr/share/zoneinfo/Europe/Rome Sun Oct 25 00:59:59 2020 UT = Sun Oct 25 02:59:59 2020 CEST isdst=1 gmtoff=7200
/usr/share/zoneinfo/Europe/Rome Sun Oct 25 01:00:00 2020 UT = Sun Oct 25 02:00:00 2020 CET isdst=0 gmtoff=3600
/usr/share/zoneinfo/Europe/Rome Sun Mar 28 00:59:59 2021 UT = Sun Mar 28 01:59:59 2021 CET isdst=0 gmtoff=3600
/usr/share/zoneinfo/Europe/Rome Sun Mar 28 01:00:00 2021 UT = Sun Mar 28 03:00:00 2021 CEST isdst=1 gmtoff=7200
/usr/share/zoneinfo/Europe/Rome Sun Oct 31 00:59:59 2021 UT = Sun Oct 31 02:59:59 2021 CEST isdst=1 gmtoff=7200
/usr/share/zoneinfo/Europe/Rome Sun Oct 31 01:00:00 2021 UT = Sun Oct 31 02:00:00 2021 CET isdst=0 gmtoff=3600
/usr/share/zoneinfo/Europe/Rome Sun Mar 27 00:59:59 2022 UT = Sun Mar 27 01:59:59 2022 CET isdst=0 gmtoff=3600
/usr/share/zoneinfo/Europe/Rome Sun Mar 27 01:00:00 2022 UT = Sun Mar 27 03:00:00 2022 CEST isdst=1 gmtoff=7200
/usr/share/zoneinfo/Europe/Rome Sun Oct 30 00:59:59 2022 UT = Sun Oct 30 02:59:59 2022 CEST isdst=1 gmtoff=7200
/usr/share/zoneinfo/Europe/Rome Sun Oct 30 01:00:00 2022 UT = Sun Oct 30 02:00:00 2022 CET isdst=0 gmtoff=3600
/usr/share/zoneinfo/Europe/Rome 9223372036854689407 = NULL
/usr/share/zoneinfo/Europe/Rome 9223372036854775807 = NULL
European Summer Time begins (clocks go forward) at 01:00 UTC on the last Sunday in March (28 March 2021), and ends (clocks go back) at 01:00 UTC on the last Sunday in October (31 October 2021).
I issued the following to test the transition to DST:
sudo date -s '2021-03-28 01:59:59'
Sun Mar 28 01:59:59 CET 2021
Sun Mar 28 03:00:00 CEST 2021
The time indeed moves forward by 1 hour at 2:00 CET (01:00 UTC) and the timezone switches from CET to CEST.
However, I get this trying to test the transition from DST:
sudo date -s '2021-10-31 01:59:59'
Sun Oct 31 01:59:59 CEST 2021
Sun Oct 31 02:00:00 CEST 2021
Setting the time directly to 02:00 actually triggers a timezone change:
sudo date -s '2021-10-31 02:00:00'
Sun Oct 31 02:00:00 CET 2021
Why is it changing timezone when setting the time to 2:00 while it is not when setting it to 1:59:59? Shouldn't it transition from DST at 3:00:00 nonetheless?

Quartz Cron Expression Issue # Monthly Jobs Failing

I have a use case where i want to run a monthly job starting at 2:30 PM for every first friday of every month starting from january.
Cron expression which i use :-
0 30 14 ? 1/1 6#1
This works absolutely fine.
Sample fire times : -
Fri Jan 03 14:30:00 UTC 2020
Fri Feb 07 14:30:00 UTC 2020
Fri Mar 06 14:30:00 UTC 2020
Fri Apr 03 14:30:00 UTC 2020
Fri May 01 14:30:00 UTC 2020
Fri Jun 05 14:30:00 UTC 2020
Fri Jul 03 14:30:00 UTC 2020
But if i use the same expression and use December as the starting month
0 30 14 ? 12/1 6#1
This starts failing :-
Fri Dec 04 14:30:00 UTC 2020
Fri Dec 03 14:30:00 UTC 2021
Fri Dec 02 14:30:00 UTC 2022
Fri Dec 01 14:30:00 UTC 2023
This kind of becomes yearly.
I don't see any issue with the expression i am using.How do we resolve this or a workaround ?
IMO this mean every 12 month = every December and it is the same as
0 30 14 ? 12 6#1
and your first record is equal to
0 30 14 ? * 6#1
(star mean every month)

Cron/Quartz Every N months

The cron expression:
0 0 0 L 8/7 ?
Is described by this site as:
"At 00:00:00am, on the last day of the month, every 7 months starting in August"
However, when I choose to see the next execution dates I get:
Thu Aug 31 00:00:00 UTC 2017
Fri Aug 31 00:00:00 UTC 2018
Sat Aug 31 00:00:00 UTC 2019
Mon Aug 31 00:00:00 UTC 2020
Tue Aug 31 00:00:00 UTC 2021
Wed Aug 31 00:00:00 UTC 2022
Thu Aug 31 00:00:00 UTC 2023
Sat Aug 31 00:00:00 UTC 2024
Which really is "every 12 months starting in August". I was expecting to get a 7-month period, but I suspect everything resets when you cross the January threshold.
Is there any way I can actually get periodic values such as every n months or every n weeks or is that not really possible out of the box with cron?

Grails get day of current week and last three weeks

I got a domain work with id, day
Day shows value from Match to current.
I need to find the list of current week and last two weeks
Ex: today is Monday (04/22) then what I need is:
Week1: 06-12 April
Week2: 13-19 April
Current week: 20-26 April.
Please helps, thanks.
Posted here for posterity:
def current = new Date().clearTime()
int currentDay = Calendar.instance.with {
time = current
get( Calendar.DAY_OF_WEEK )
}
def listOfDays = (current - 13 - currentDay)..(current + 7 - currentDay)
listOfDays.each {
println it
}
Prints:
Sun Apr 06 00:00:00 BST 2014
Mon Apr 07 00:00:00 BST 2014
Tue Apr 08 00:00:00 BST 2014
Wed Apr 09 00:00:00 BST 2014
Thu Apr 10 00:00:00 BST 2014
Fri Apr 11 00:00:00 BST 2014
Sat Apr 12 00:00:00 BST 2014
Sun Apr 13 00:00:00 BST 2014
Mon Apr 14 00:00:00 BST 2014
Tue Apr 15 00:00:00 BST 2014
Wed Apr 16 00:00:00 BST 2014
Thu Apr 17 00:00:00 BST 2014
Fri Apr 18 00:00:00 BST 2014
Sat Apr 19 00:00:00 BST 2014
Sun Apr 20 00:00:00 BST 2014
Mon Apr 21 00:00:00 BST 2014
Tue Apr 22 00:00:00 BST 2014
Wed Apr 23 00:00:00 BST 2014
Thu Apr 24 00:00:00 BST 2014
Fri Apr 25 00:00:00 BST 2014
Sat Apr 26 00:00:00 BST 2014

Groovy, get list of current week and last 2 weeks

I got a domain work with id, day, list day from January to now.
I get the current time by code:
def current = new Date()
So, I'd like to get list day from last 2 weeks, included this week, then I used the following code but it doesn't work.
def getWeek = current.Time - 13 (13 is 2 week + today)
Please help me solve it.
Not 100% sure I understand, but you should be able to use a Range:
def current = new Date().clearTime()
def listOfDays = (current - 13)..current
listOfDays.each { println it }
That prints:
Wed Apr 09 00:00:00 BST 2014
Thu Apr 10 00:00:00 BST 2014
Fri Apr 11 00:00:00 BST 2014
Sat Apr 12 00:00:00 BST 2014
Sun Apr 13 00:00:00 BST 2014
Mon Apr 14 00:00:00 BST 2014
Tue Apr 15 00:00:00 BST 2014
Wed Apr 16 00:00:00 BST 2014
Thu Apr 17 00:00:00 BST 2014
Fri Apr 18 00:00:00 BST 2014
Sat Apr 19 00:00:00 BST 2014
Sun Apr 20 00:00:00 BST 2014
Mon Apr 21 00:00:00 BST 2014
Tue Apr 22 00:00:00 BST 2014
If you mean you want the entire 2 weeks before the current week AND the current week, you could do:
def current = new Date().clearTime()
int currentDay = Calendar.instance.with {
time = current
get( Calendar.DAY_OF_WEEK )
}
def listOfDays = (current - 13 - currentDay)..(current + 7 - currentDay)
listOfDays.each {
println it
}
Which prints:
Sun Apr 06 00:00:00 BST 2014
Mon Apr 07 00:00:00 BST 2014
Tue Apr 08 00:00:00 BST 2014
Wed Apr 09 00:00:00 BST 2014
Thu Apr 10 00:00:00 BST 2014
Fri Apr 11 00:00:00 BST 2014
Sat Apr 12 00:00:00 BST 2014
Sun Apr 13 00:00:00 BST 2014
Mon Apr 14 00:00:00 BST 2014
Tue Apr 15 00:00:00 BST 2014
Wed Apr 16 00:00:00 BST 2014
Thu Apr 17 00:00:00 BST 2014
Fri Apr 18 00:00:00 BST 2014
Sat Apr 19 00:00:00 BST 2014
Sun Apr 20 00:00:00 BST 2014
Mon Apr 21 00:00:00 BST 2014
Tue Apr 22 00:00:00 BST 2014
Wed Apr 23 00:00:00 BST 2014
Thu Apr 24 00:00:00 BST 2014
Fri Apr 25 00:00:00 BST 2014
Sat Apr 26 00:00:00 BST 2014

Resources