dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

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

Open njnu-seafish opened this issue 5 months ago • 5 comments

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.

Image

2, During workflow scheduling or running, select the 'seatunnel' worker group and the 'env_two_group' environment configuration.

Image

3, When I changed the worker group to 'g_121', the environment configuration was cleared.

Image

Are you willing to submit a PR?

  • [x] Yes I am willing to submit a PR!

Code of Conduct

njnu-seafish avatar Jun 22 '26 12:06 njnu-seafish

This needs to be discussed. The current design is that environment variables are bound to the workgroup, which runs through all the logic.

SbloodyS avatar Jun 23 '26 03:06 SbloodyS

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.

github-actions[bot] avatar Jul 24 '26 00:07 github-actions[bot]

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.

richardmilles avatar Aug 07 '26 08:08 richardmilles

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.

github-actions[bot] avatar Sep 07 '26 00:09 github-actions[bot]

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.

github-actions[bot] avatar Sep 14 '26 00:09 github-actions[bot]