Skip to content

Commit

Permalink
[Fix-1887] [admin] Fix DolphinScheduler can not generate task code in…
Browse files Browse the repository at this point in the history
… createTaskDefinition (#2493)

Co-authored-by: wenmo <[email protected]>
  • Loading branch information
aiwenmo and aiwenmo authored Nov 4, 2023
1 parent 869c68d commit 439754d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ public Result<String> createTaskDefinition(
return Result.failed(Status.DS_WORK_FLOW_DEFINITION_TASK_NAME_EXIST, processName, taskName);
}

Long taskCode = taskClient.genTaskCode(projectCode);
taskRequest.setCode(taskCode);

String taskDefinitionJsonObj = JSONUtil.toJsonStr(taskRequest);
taskClient.createTaskDefinition(projectCode, process.getCode(), upstreamCodes, taskDefinitionJsonObj);

Expand Down

0 comments on commit 439754d

Please sign in to comment.