BoYiZhang opened a new pull request #3957:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/3957


   When running a shell task, the resource file is lost, which results in an 
error
   
   TaskParams 
   Taskparams does not have a resourcelist. When converting, the content of 
resourcelist will be lost
   
   The code is as follows: 
   VarPoolUtils#setTaskNodeLocalParams
   ```
   /**
        * setTaskNodeLocalParams
        * @param taskNode taskNode
        * @param prop LocalParamName
        * @param value LocalParamValue
        */
       public static void setTaskNodeLocalParams(TaskNode taskNode, String 
prop, Object value) {
           String taskParamsJson = taskNode.getParams();
           TaskParams taskParams = JSONUtils.parseObject(taskParamsJson, 
TaskParams.class);
           if (taskParams == null) {
               return;
           }
           taskParams.setLocalParamValue(prop, value);
           taskNode.setParams(JSONUtils.toJsonString(taskParams));
       }
   
   ```
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to