Skip to content

Commit

Permalink
throw exception when get.json can not fonud dag
Browse files Browse the repository at this point in the history
  • Loading branch information
zeyu10 committed Dec 5, 2024
1 parent 28fd470 commit 9738ce7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ public Map<String, Object> getBasicDAGInfo(String executionId, boolean brief) {
dagInfo = longTermStorage.getBasicDAGInfo(executionId);
}

if (dagInfo == null) {
throw new IllegalArgumentException("dag is not found");

Check warning on line 239 in rill-flow-service/src/main/java/com/weibo/rill/flow/service/facade/DAGRuntimeFacade.java

View check run for this annotation

Codecov / codecov/patch

rill-flow-service/src/main/java/com/weibo/rill/flow/service/facade/DAGRuntimeFacade.java#L239

Added line #L239 was not covered by tests
}

Map<String, Object> result = makeDAGInfoMap(dagInfo, brief);
result.put("context", getContext(executionId, null));
result.put("invoke_summary", tenantTaskStatistic.getFlowAggregate(executionId));
Expand Down

0 comments on commit 9738ce7

Please sign in to comment.