huagetai commented on issue #9283:
URL: 
https://github.com/apache/dolphinscheduler/issues/9283#issuecomment-1082916537


   @zhuangchong 
   
   ATM:
   ```java
   public class TaskExecuteThread implements Runnable, Delayed {
       ...
        @Override
         public void run() {
              ...
              TaskChannel taskChannel = 
taskPluginManager.getTaskChannelMap().get(taskExecutionContext.getTaskType());
              ...
         }
   }
   
   @Component
   public class TaskPluginManager {
       ....
        private final PluginDao pluginDao;
        ....
   }
   
   ```
   
   In addition, due to the dependence on the dolphinscheduler-service package, 
spring will automatically inject the datasource
   
   <img width="1529" alt="截屏2022-03-30 下午6 32 32" 
src="https://user-images.githubusercontent.com/1137341/160812071-c6a893dd-2eb3-42cd-9c84-7d11b6556aaa.png";>
   


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