arstercz opened a new issue, #12457:
URL: https://github.com/apache/dolphinscheduler/issues/12457

   ### 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
   
   It's not work when I create or change the task `Environment Name`, and 
`Environment Name` always use the first Environment of the Worker Group.
   
   ### What you expected to happen
   
   `Environment Name` should be changed so that I can use different 
`Environment Name` from the same `Worker group`.
   
   ### How to reproduce
   
   It's simple to reproduce this issue
   
       1. into the `Security -> Environment Manage`, create multiple 
`Environment Name` that all belongs to one worker group. 
       2. into the `Project -> Task -> Task Definition`, change the 
`Environment Name` by create or edit task;
       3. save and review the task,and will find it's not work;
   
   ### Anything else
   
   ### How often does this problem occur?
   
    > every time
   
   ### The following instructions may be useful
   
   Our dolphincheduler instance use MySQL database, and found the sql update 
with wrong contition:
   ```
   # 1
   select 
     id, code...
     from t_ds_task_definition
     WHERE code = ...
     and version = ..
   
   # 2
   insert into t_ds_task_definition_log ...
   
   # 3
     UPDATE t_ds_task_definition  SET code=...
   ...
   WHERE id=?
   ```
   
   we cann't find the `id value` from the table `t_ds_task_definition`, but 
found in table `t_ds_task_definition_log`.
   
   ### Version
   
   3.1.x
   
   ### 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