ruanwenjun commented on issue #16991:
URL: 
https://github.com/apache/dolphinscheduler/issues/16991#issuecomment-2635648267

   > > We will clone the environment config from the old task instance, this 
not work?
   > 
   > not working...,
   > 
   > when recover a workflow, 
`RecoverFailureTaskCommandHandler.dealWithHistoryTaskInstances` call 
`getValidTaskInstance` to query taskInstances from db, shell task write temp 
.sh using `environmentConfig`, but this field is not in db, it's only generated 
by `injectEnvironmentConfigFromDB()` in 
`FirstRunTaskInstanceFactory.createTaskInstance`.
   
   Got it, we need to add `@TableField(exist = false)` on `environmentConfig`. 
And other execute type will also have this problem.
   
   <img width="1555" alt="Image" 
src="https://github.com/user-attachments/assets/126f2184-4e4c-4f7c-946b-45e67b25ad3b";
 />
   


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