zhongjiajie opened a new issue #6418:
URL: https://github.com/apache/dolphinscheduler/issues/6418


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   1.At the beginning, I create a workflow as below
   
![image](https://user-images.githubusercontent.com/15820530/135251716-ce6277a9-4e33-4f67-912d-3638a1551b6e.png)
   2.After click the `save` button, I check the database.
   
![image](https://user-images.githubusercontent.com/15820530/135252156-db7abf4b-564d-4e54-b605-d3253e66244c.png)
   3.And then I delete task named `delete`, and save workflow again.
   
![image](https://user-images.githubusercontent.com/15820530/135252291-94c16810-9bff-4f02-865a-30aa238039d6.png)
   4.I go to database and check records again, and found out task `delete` 
still in our database
   
![image](https://user-images.githubusercontent.com/15820530/135252487-f5f08ef0-f157-40a2-a179-dad14120ccc5.png)
   
   
   ### What you expected to happen
   
   I think it should remove database record when task not exists in the 
workflow anymore. If deleted task still in the database, the size of table 
`t_ds_task_definition` is too big for us.
   
   ### How to reproduce
   
   Please see section **what happend**
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to