Browse Source

Update DataAnalysisServiceImpl.java

pull/3/MERGE
Zhou Zheng 4 years ago
parent
commit
640774595d
  1. 2
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataAnalysisServiceImpl.java

2
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataAnalysisServiceImpl.java

@ -129,7 +129,7 @@ public class DataAnalysisServiceImpl extends BaseService implements DataAnalysis
endDate,
(start, end, projectIds) -> this.processInstanceMapper.countInstanceStateByUser(start, end, projectIds));
// process state count needs to remove state of forced success
if (tmpResult.get(Constants.STATUS).equals(Status.SUCCESS)) {
if (tmpResult.containsKey(Constants.STATUS) && tmpResult.get(Constants.STATUS).equals(Status.SUCCESS)) {
((TaskCountDto)tmpResult.get(Constants.DATA_LIST)).removeStateFromCountList(ExecutionStatus.FORCED_SUCCESS);
}
return tmpResult;

Loading…
Cancel
Save