@ -23,6 +23,7 @@ import org.apache.dolphinscheduler.api.dto.TaskCountDto;
import org.apache.dolphinscheduler.api.enums.Status ;
import org.apache.dolphinscheduler.api.enums.Status ;
import org.apache.dolphinscheduler.api.utils.Constants ;
import org.apache.dolphinscheduler.api.utils.Constants ;
import org.apache.dolphinscheduler.common.enums.CommandType ;
import org.apache.dolphinscheduler.common.enums.CommandType ;
import org.apache.dolphinscheduler.common.enums.ExecutionStatus ;
import org.apache.dolphinscheduler.common.enums.UserType ;
import org.apache.dolphinscheduler.common.enums.UserType ;
import org.apache.dolphinscheduler.common.queue.ITaskQueue ;
import org.apache.dolphinscheduler.common.queue.ITaskQueue ;
import org.apache.dolphinscheduler.common.queue.TaskQueueFactory ;
import org.apache.dolphinscheduler.common.queue.TaskQueueFactory ;
@ -246,6 +247,7 @@ public class DataAnalysisService {
Date start = null ;
Date start = null ;
Date end = null ;
Date end = null ;
if ( startDate ! = null & & endDate ! = null ) {
try {
try {
start = DateUtils . getScheduleDate ( startDate ) ;
start = DateUtils . getScheduleDate ( startDate ) ;
end = DateUtils . getScheduleDate ( endDate ) ;
end = DateUtils . getScheduleDate ( endDate ) ;
@ -254,6 +256,8 @@ public class DataAnalysisService {
putErrorRequestParamsMsg ( result ) ;
putErrorRequestParamsMsg ( result ) ;
return result ;
return result ;
}
}
}
Integer [ ] projectIdArray = getProjectIdsArrays ( loginUser , projectId ) ;
Integer [ ] projectIdArray = getProjectIdsArrays ( loginUser , projectId ) ;
// count command state
// count command state
@ -278,18 +282,21 @@ public class DataAnalysisService {
// init data map
// init data map
// dataMap.put(ExecutionStatus.SUBMITTED_SUCCESS,commonCommand);
/ * *
// dataMap.put(ExecutionStatus.RUNNING_EXEUTION,commonCommand);
* START_PROCESS , START_CURRENT_TASK_PROCESS , RECOVER_TOLERANCE_FAULT_PROCESS , RECOVER_SUSPENDED_PROCESS ,
// dataMap.put(ExecutionStatus.READY_PAUSE,commonCommand);
START_FAILURE_TASK_PROCESS , COMPLEMENT_DATA , SCHEDULER , REPEAT_RUNNING , PAUSE , STOP , RECOVER_WAITTING_THREAD ;
// dataMap.put(ExecutionStatus.PAUSE,commonCommand);
* /
// dataMap.put(ExecutionStatus.READY_STOP,commonCommand);
dataMap . put ( CommandType . START_PROCESS , commonCommand ) ;
// dataMap.put(ExecutionStatus.STOP,commonCommand);
dataMap . put ( CommandType . START_CURRENT_TASK_PROCESS , commonCommand ) ;
// dataMap.put(ExecutionStatus.FAILURE,commonCommand);
dataMap . put ( CommandType . RECOVER_TOLERANCE_FAULT_PROCESS , commonCommand ) ;
// dataMap.put(ExecutionStatus.SUCCESS,commonCommand);
dataMap . put ( CommandType . RECOVER_SUSPENDED_PROCESS , commonCommand ) ;
// dataMap.put(ExecutionStatus.NEED_FAULT_TOLERANCE,commonCommand);
dataMap . put ( CommandType . START_FAILURE_TASK_PROCESS , commonCommand ) ;
// dataMap.put(ExecutionStatus.KILL,commonCommand);
dataMap . put ( CommandType . COMPLEMENT_DATA , commonCommand ) ;
// dataMap.put(ExecutionStatus.WAITTING_THREAD,commonCommand);
dataMap . put ( CommandType . SCHEDULER , commonCommand ) ;
// dataMap.put(ExecutionStatus.WAITTING_DEPEND,commonCommand);
dataMap . put ( CommandType . REPEAT_RUNNING , commonCommand ) ;
dataMap . put ( CommandType . PAUSE , commonCommand ) ;
dataMap . put ( CommandType . STOP , commonCommand ) ;
dataMap . put ( CommandType . RECOVER_WAITTING_THREAD , commonCommand ) ;
// put command state
// put command state
for ( CommandCount executeStatusCount : commandStateCounts ) {
for ( CommandCount executeStatusCount : commandStateCounts ) {