|
|
@ -43,7 +43,7 @@ public abstract class TaskBaseService implements TaskHandler {
|
|
|
|
execute(redisKeyBO);
|
|
|
|
execute(redisKeyBO);
|
|
|
|
}catch (Throwable e){
|
|
|
|
}catch (Throwable e){
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
log.info("任务执行失败 : ",e.getMessage());
|
|
|
|
log.info("任务执行失败 : ", e);
|
|
|
|
rollbackRedisKey(redisKeyBO);
|
|
|
|
rollbackRedisKey(redisKeyBO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -58,7 +58,7 @@ public abstract class TaskBaseService implements TaskHandler {
|
|
|
|
transactionManager.commit(status);
|
|
|
|
transactionManager.commit(status);
|
|
|
|
}catch (Throwable e){
|
|
|
|
}catch (Throwable e){
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
log.info("任务执行失败 : ",e.getMessage());
|
|
|
|
log.info("任务执行失败 : ", e);
|
|
|
|
transactionManager.rollback(status);
|
|
|
|
transactionManager.rollback(status);
|
|
|
|
rollbackRedisKey(redisKeyBO);
|
|
|
|
rollbackRedisKey(redisKeyBO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|