REM:
1. 修正迪普设备由于缓存状态无法停止任务问题
This commit is contained in:
HuangXin 2021-01-19 16:27:12 +08:00
parent d3a5cc7348
commit 984bd6f21d
1 changed files with 9 additions and 1 deletions

View File

@ -932,7 +932,15 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
return new MulReturnType<>(err, null);
}
err = removeTractionStrategy(getTractionStrategyName(disposeObject));
String policyName = getTractionStrategyName(disposeObject);
// 更新缓存状态
if (dpBypassManager.getTractionStrategyName().containsKey(policyName)) {
DpTractionStrategy ts = dpBypassManager.getTractionStrategyName().get(policyName);
ts.setRunning(false);
}
err = removeTractionStrategy(policyName);
if (err != ErrorCode.ERR_OK) {
log.error("----Error DPTech Stop Cleanup Task, Clean Traction Strategy Error: {}, {}",