apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.39k stars 4.49k forks source link

[Bug] [Api] Using the TaskDefinitionController-save-single interface can lead to duplicate predecessor tasks. #16202

Open xiaoqisu777 opened 5 days ago

xiaoqisu777 commented 5 days ago

Search before asking

What happened

Use this API image Adding a task adds an additional front-end node, image image If too many tasks are added, it can cause the workflow details to get stuck when opening.

What you expected to happen

I expect each task to have only one predecessor node, like this image

How to reproduce

use this api >1 time ,you can reproduce the problem image

Anything else

No response

Version

dev

Are you willing to submit PR?

Code of Conduct

ruanwenjun commented 2 days ago

Please don't use the task page to create new task, there is a lot of bugs here, we don't want to change the code here, unless you want to refactor the whole process.