概述
使用quartz做定时任务的时候,发现时而定时任务不执行,检查日志如下:
10:42:33.925 INFO o.s.scheduling.quartz.LocalDataSourceJobStore - ClusterManager: detected 1 failed or restarted instances.
10:42:33.925 INFO o.s.scheduling.quartz.LocalDataSourceJobStore - ClusterManager: Scanning for instance "iZbp1bmsq801krfcxf83thZ1482222688128"'s failed in-progress jobs.
10:42:33.976 DEBUG o.s.scheduling.quartz.LocalDataSourceJobStore - ClusterManager: ......Freed 0 acquired trigger(s).
10:42:33.976 DEBUG o.s.scheduling.quartz.LocalDataSourceJobStore - ClusterManager: ......Deleted 0 complete triggers(s).
10:42:33.976 DEBUG o.s.scheduling.quartz.LocalDataSourceJobStore - ClusterManager: ......Scheduled 0 recoverable job(s) for recovery.
10:42:33.977 DEBUG o.s.scheduling.quartz.LocalDataSourceJobStore - ClusterManager: ......Cleaned-up 0 other failed job(s).
10:42:34.055 DEBUG o.s.scheduling.quartz.LocalDataSourceJobStore - ClusterManager: Check-in complete.
10:42:42.620 DEBUG o.s.scheduling.quartz.LocalDataSourceJobStore - MisfireHandler: scanning for misfires...
10:42:42.695 DEBUG o.s.scheduling.quartz.LocalDataSourceJobStore - Found 0 triggers that missed their scheduled fire-time.
检查数据qrtz_triggers
表,定时任务失败会产生ERROR的触发器,而且trigger_name将会发生变化。那么导致这个问题出现的原因是什么呢?
最后
以上就是超级汉堡为你收集整理的bug宝典JAVA篇 missed their scheduled fire-time的全部内容,希望文章能够帮你解决bug宝典JAVA篇 missed their scheduled fire-time所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复