您的位置:首页 > 编程语言 > Java开发

Spring Quartz提示:This scheduler instance is still active but was recovered by another in the cluster

2017-09-18 00:00 2336 查看
项目启动提示:org.springframework.scheduling.quartz.LocalDataSourceJobStore 2017-09-18 11:06:48,260-- WARN -- This scheduler instance (xxx) is still active but was recovered by another instance in the cluster. This may cause inconsistent behavior.

控制台重复输出以上内容,不执行定时器。

原因:在相同的数据库(集群)下,存在另外一个相同的应用(可能是测试或其他开发环境)已经在执行该定时任务,Quartz为保证数据一致性,后启动的定时任务不会执行。

解决:关掉另外一个地方的定时任务,重启当前应用。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Quartz JobScheduler Java
相关文章推荐