DarkAssassinator opened a new issue, #12000: URL: https://github.com/apache/dolphinscheduler/issues/12000
### 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 cannot delete the WorkerGroup from the Master service. When try to repreduce #11964 , i create a worker group named `app01`, then config the a shell task, and save it and run it.  Then delete this `app01` worker group. And re-run this process instance. It still can running and no any warn and error. After i check the source code, i found that the Master service just will keep add the worker group, never remove the deleted worker group. If user update or delete the worker group from the UI, these history records still will keep in the memory and task affect. `org.apache.dolphinscheduler.server.master.registry.ServerNodeManager`  ### What you expected to happen If cannot match the worker group, this task should not be dispatch and running. ### How to reproduce Step 1. Add a Worker Group named `app01` Step 2. Add a shell task, and the config the Worker group to `app01` Step 3. Run this workflow. Step 4. Delete the `app01` worker group. Step 5. Re-run this process instance. ### Anything else _No response_ ### Version dev ### Are you willing to submit PR? - [X] 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]
