Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

定时器执行混乱. #1173

Closed
xmlspyspring opened this issue May 8, 2020 · 4 comments
Closed

定时器执行混乱. #1173

xmlspyspring opened this issue May 8, 2020 · 4 comments

Comments

@xmlspyspring
Copy link

版本号:

2.1.3和2.1.4

问题描述:

我设置自带的org.jeecg.modules.quartz.job.SampleJob为每分钟执行一次,
cron表达式为0 1/1 * * * ? *,

输出结果:
2020-05-08 22:33:01.668 [quartzScheduler_Worker-4] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-08 22:33:01.668
2020-05-08 22:36:00.365 [quartzScheduler_Worker-5] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-08 22:36:00.365
2020-05-08 22:38:00.332 [quartzScheduler_Worker-6] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-08 22:38:00.331
2020-05-08 22:40:00.366 [quartzScheduler_Worker-7] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-08 22:40:00.366
2020-05-08 22:42:00.331 [quartzScheduler_Worker-8] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-08 22:42:00.331
2020-05-08 22:44:00.378 [quartzScheduler_Worker-9] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-08 22:44:00.377
2020-05-08 22:46:00.328 [quartzScheduler_Worker-10] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-08 22:46:00.328

截图&代码:

友情提示: 未按格式要求发帖,会直接删掉。

@zhangdaiscott
Copy link
Member

重新启动了?

@xmlspyspring
Copy link
Author

重新启动了?

我的程序直接启动后只执行一次.
我重启定时任务后就混乱,之后再重启任务还是这样.

2020-05-09 11:17:00.326 [quartzScheduler_Worker-6] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-09 11:17:00.326
2020-05-09 11:26:00.322 [quartzScheduler_Worker-7] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-09 11:26:00.322
2020-05-09 11:35:00.362 [quartzScheduler_Worker-8] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-09 11:35:00.362
2020-05-09 11:36:00.423 [quartzScheduler_Worker-9] INFO org.jeecg.modules.quartz.job.SampleJob:21 - Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-09 11:36:00.423

@xmlspyspring
Copy link
Author

我又重启了程序,现在定时器又这样了:

Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-09 12:16:00.284
Jeecg-Boot 普通定时任务 SampleJob ! 时间:2020-05-09 12:29:00.316

@zhangdaiscott
Copy link
Member

无法重现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants