I have almost 70 jobs that are executed using the spring task scheduler. 5 of them are daily jobs, 20 of which are weekly jobs, and the rest will be performed monthly.
I configured in applicationContext.xml file below
<task:scheduler id="myScheduler" pool-size="50" />
Despite the fact that I have configured 50 threads, I still run into problems.
Problem : All daily tasks are not completed daily. Work tasks completed within 8 days are listed below.
Job_Number No.Of times Ran ---------- --------------- 1 8 2 6 3 4 4 8 5 7
I canβt understand why this is happening. I searched a lot, still have not found a solution. Please suggest me on this ..
For testing purposes, I also commented on my entire business logic (which means I only planned empty methods). Even in this scenario, I also had a problem.
I specified cron expressions as follows
monthly_cron_expression = 0 00 02 15 * ? weekly_cron_expression = 0 00 03 ? * FRI daily_cron_expression = 0 5 10 * * ?
java spring scheduler
PSR
source share