From 43372df103c2f63b84d79849dbf645f91636c61c Mon Sep 17 00:00:00 2001 From: steven-hyp Date: Mon, 26 Sep 2022 17:30:36 +0800 Subject: [PATCH] fix scheduled task search --- .../web/common/deploy/service/DeployedTaskService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kun-data-platform/kun-data-platform-web/src/main/java/com/miotech/kun/dataplatform/web/common/deploy/service/DeployedTaskService.java b/kun-data-platform/kun-data-platform-web/src/main/java/com/miotech/kun/dataplatform/web/common/deploy/service/DeployedTaskService.java index bb85cb0bc..994b90deb 100644 --- a/kun-data-platform/kun-data-platform-web/src/main/java/com/miotech/kun/dataplatform/web/common/deploy/service/DeployedTaskService.java +++ b/kun-data-platform/kun-data-platform-web/src/main/java/com/miotech/kun/dataplatform/web/common/deploy/service/DeployedTaskService.java @@ -343,6 +343,9 @@ public PaginationResult searchTaskRun(ScheduledTaskRunSearchRequest req // fetch workflow ids using deployed tasks if (!request.getDefinitionIds().isEmpty()) { List taskIds = deployedTaskDao.fetchWorkflowTaskId(request.getDefinitionIds()); + if (taskIds.isEmpty()) { + throw new IllegalArgumentException(String.format("No matched deployed-task found")); + } searchRequestBuilder.withTaskIds(taskIds); } if (org.apache.commons.lang3.StringUtils.isNoneBlank(request.getName())) {