|
@@ -23,6 +23,7 @@ import org.apache.dolphinscheduler.api.dto.TaskCountDto;
|
|
|
import org.apache.dolphinscheduler.api.enums.Status;
|
|
|
import org.apache.dolphinscheduler.api.utils.Constants;
|
|
|
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.queue.ITaskQueue;
|
|
|
import org.apache.dolphinscheduler.common.queue.TaskQueueFactory;
|
|
@@ -246,15 +247,18 @@ public class DataAnalysisService {
|
|
|
Date start = null;
|
|
|
Date end = null;
|
|
|
|
|
|
- try {
|
|
|
- start = DateUtils.getScheduleDate(startDate);
|
|
|
- end = DateUtils.getScheduleDate(endDate);
|
|
|
- } catch (Exception e) {
|
|
|
- logger.error(e.getMessage(),e);
|
|
|
- putErrorRequestParamsMsg(result);
|
|
|
- return result;
|
|
|
+ if (startDate != null && endDate != null){
|
|
|
+ try {
|
|
|
+ start = DateUtils.getScheduleDate(startDate);
|
|
|
+ end = DateUtils.getScheduleDate(endDate);
|
|
|
+ } catch (Exception e) {
|
|
|
+ logger.error(e.getMessage(),e);
|
|
|
+ putErrorRequestParamsMsg(result);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
Integer[] projectIdArray = getProjectIdsArrays(loginUser, projectId);
|
|
|
|
|
|
List<CommandCount> commandStateCounts =
|
|
@@ -278,18 +282,21 @@ public class DataAnalysisService {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+ * START_PROCESS, START_CURRENT_TASK_PROCESS, RECOVER_TOLERANCE_FAULT_PROCESS, RECOVER_SUSPENDED_PROCESS,
|
|
|
+ START_FAILURE_TASK_PROCESS,COMPLEMENT_DATA,SCHEDULER, REPEAT_RUNNING,PAUSE,STOP,RECOVER_WAITTING_THREAD;
|
|
|
+ */
|
|
|
+ dataMap.put(CommandType.START_PROCESS,commonCommand);
|
|
|
+ dataMap.put(CommandType.START_CURRENT_TASK_PROCESS,commonCommand);
|
|
|
+ dataMap.put(CommandType.RECOVER_TOLERANCE_FAULT_PROCESS,commonCommand);
|
|
|
+ dataMap.put(CommandType.RECOVER_SUSPENDED_PROCESS,commonCommand);
|
|
|
+ dataMap.put(CommandType.START_FAILURE_TASK_PROCESS,commonCommand);
|
|
|
+ dataMap.put(CommandType.COMPLEMENT_DATA,commonCommand);
|
|
|
+ dataMap.put(CommandType.SCHEDULER,commonCommand);
|
|
|
+ dataMap.put(CommandType.REPEAT_RUNNING,commonCommand);
|
|
|
+ dataMap.put(CommandType.PAUSE,commonCommand);
|
|
|
+ dataMap.put(CommandType.STOP,commonCommand);
|
|
|
+ dataMap.put(CommandType.RECOVER_WAITTING_THREAD,commonCommand);
|
|
|
|
|
|
|
|
|
for (CommandCount executeStatusCount : commandStateCounts){
|