任务结果丢失处理:调度记录停留在 "运行中" 状态超过10min,且对应执行器心跳注册失败不在线,则将本地调度主动标记失败;

2.2.0
xuxueli 5 years ago
parent c4f51ba26a
commit db8df9ddbe

@ -72,12 +72,12 @@ public class JobLosedMonitorHelper {
} }
logger.info(">>>>>>>>>>> xxl-job, job fail monitor thread stop"); logger.info(">>>>>>>>>>> xxl-job, JobLosedMonitorHelper stop");
} }
}); });
monitorThread.setDaemon(true); monitorThread.setDaemon(true);
monitorThread.setName("xxl-job, admin JobFailMonitorHelper"); monitorThread.setName("xxl-job, admin JobLosedMonitorHelper");
monitorThread.start(); monitorThread.start();
} }

@ -155,7 +155,7 @@
SET SET
`handle_time`= #{handleTime}, `handle_time`= #{handleTime},
`handle_code`= #{handleCode}, `handle_code`= #{handleCode},
`handle_msg`= #{handleMsg} `handle_msg`= #{handleMsg}
WHERE `id`= #{id} WHERE `id`= #{id}
</update> </update>

Loading…
Cancel
Save