[Improvement][API&UI] When switching worker groups during workflow scheduling and execution, the current environment is directly cleared without checking its availability, which is inconsistent with the task creation logic.
Search before asking
- [x] I had searched in the issues and found no similar feature requirement.
Description
1, Create an environment configuration bound to two worker groups.
2, During workflow scheduling or running, select the 'seatunnel' worker group and the 'env_two_group' environment configuration.
3, When I changed the worker group to 'g_121', the environment configuration was cleared.
Are you willing to submit a PR?
- [x] Yes I am willing to submit a PR!
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
This needs to be discussed. The current design is that environment variables are bound to the workgroup, which runs through all the logic.
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
I'd like to take a focused UI fix for this issue.
I understand the design that environments are bound to worker groups. This PR will not remove that binding. It only aligns Start/Timing modals with the existing task-node logic: when switching worker group, keep environmentCode if it is still valid for the new group; clear it only when it is not.
Reference: use-environment-name.ts already does this on task create/edit.
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.