zhuangchong opened a new issue #3581: URL: https://github.com/apache/incubator-dolphinscheduler/issues/3581
**Describe the feature** To delete a workflow definition in the workflow definition page, check whether there is a running workflow instance. If there is a running workflow instance, it is not allowed to delete it. **Is your feature request related to a problem? Please describe.** At present, when there are running workflow instances and task instances, workflow definitions can be deleted successfully. After deletion, the running workflow instance and task instance cannot be found on the page. **Describe the solution you'd like** The workflow definition deletion function is added to check whether there are running workflow instances according to the workflow definition ID and running status. If there are running workflow instances, they are not allowed to be deleted, and a friendly prompt will be given. --- **描述功能** 在工作流定义页面中删除某一个工作流定义,需先检查一下是否有正在运行的工作流实例,如果有正在运行的工作流实例,不允许删除。 **您的功能请求是否与问题相关?请描述一下** 目前,当有正在运行的工作流实例和任务实例,工作流定义是可以被删除成功的。删除后,正在运行的工作流实例和任务实例在页面也查询不到。 **描述你想要的解决方案** 工作流定义删除功能,新增根据工作流定义ID和运行状态,检查是否有正在运行的工作流实例,如果有正在运行的工作流实例,不允许删除,友情提示。 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
