提交 16c29a00 编写于 作者: T Technoboy-

add log

上级 d14cefdf
......@@ -134,9 +134,9 @@ public class MasterBaseTaskExecThread implements Callable<Boolean> {
return task;
}
if(!submitDB){
logger.error("task commit to db failed , task has already retry {} times, please check the database", retryTimes);
logger.error("task commit to db failed , taskId {} has already retry {} times, please check the database", taskInstance.getId(), retryTimes);
}else if(!submitQueue){
logger.error("task commit to queue failed , task has already retry {} times, please check the database", retryTimes);
logger.error("task commit to queue failed , taskId {} has already retry {} times, please check the queue", taskInstance.getId(), retryTimes);
}
Thread.sleep(commitRetryInterval);
} catch (Exception e) {
......
......@@ -75,6 +75,7 @@ public class MasterTaskExecThread extends MasterBaseTaskExecThread {
Boolean result = false;
this.taskInstance = submit();
if(this.taskInstance == null){
logger.error("submit task instance to mysql and queue failed , please check and fix it");
return result;
}
if(!this.taskInstance.getState().typeIsFinished()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册