场景-3的TODO,发生错误的大致位置
parent
795a83a563
commit
ef393d13fe
|
@ -920,7 +920,7 @@ public class DefaultExecThread implements AtuExecThread{
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (task.getRetryStrategy() != null && AtuExecConstant.TASK_RETRY_STRATEGY_PACKAGE.equals(task.getRetryStrategy())) { //
|
if (task.getRetryStrategy() != null && AtuExecConstant.TASK_RETRY_STRATEGY_PACKAGE.equals(task.getRetryStrategy())) { //
|
||||||
count = task.getCurrentRetryNum();
|
count = task.getCurrentRetryNum(); // TODO: -3
|
||||||
}
|
}
|
||||||
if(null==executeResult){
|
if(null==executeResult){
|
||||||
if (!this.thread.isInterrupted()) {
|
if (!this.thread.isInterrupted()) {
|
||||||
|
@ -994,6 +994,7 @@ public class DefaultExecThread implements AtuExecThread{
|
||||||
}
|
}
|
||||||
String resultMsg = "";
|
String resultMsg = "";
|
||||||
if(0!=executeResult.getResultStatus()){
|
if(0!=executeResult.getResultStatus()){
|
||||||
|
// TODO: 这里的错误信息
|
||||||
resultMsg = "自动重试次数:"+count+";"+executeResult.getResultMsg();
|
resultMsg = "自动重试次数:"+count+";"+executeResult.getResultMsg();
|
||||||
}
|
}
|
||||||
if (!this.thread.isInterrupted()) {
|
if (!this.thread.isInterrupted()) {
|
||||||
|
|
|
@ -1288,6 +1288,7 @@ public class AtuPlanTaskApiServiceImpl extends AbstractExcelService<AtuPlanTask>
|
||||||
Object o = redisTemplate.opsForHash().get(RedisConstant.PLAN_BATCH_RETRY_COUNT, atuTaskExecDto.getBatchId());
|
Object o = redisTemplate.opsForHash().get(RedisConstant.PLAN_BATCH_RETRY_COUNT, atuTaskExecDto.getBatchId());
|
||||||
if (null != o) {
|
if (null != o) {
|
||||||
int count = Integer.parseInt(o.toString());
|
int count = Integer.parseInt(o.toString());
|
||||||
|
// TODO: 如何是-3
|
||||||
atuTaskExecDto.setCurrentRetryNum(atuTaskExecDto.getFailRetryNum() - count);
|
atuTaskExecDto.setCurrentRetryNum(atuTaskExecDto.getFailRetryNum() - count);
|
||||||
}
|
}
|
||||||
amqpAdmin.declareQueue(new Queue(queueName));
|
amqpAdmin.declareQueue(new Queue(queueName));
|
||||||
|
|
Loading…
Reference in New Issue