[server][ executor]- 完成同步调用命令的部分代码
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package io.wdd.rpc.scheduler.service.script;
|
||||
|
||||
|
||||
import io.wdd.rpc.execute.service.CoreExecutionService;
|
||||
import io.wdd.rpc.execute.service.AsyncExecutionService;
|
||||
import io.wdd.rpc.scheduler.beans.ScriptSchedulerDTO;
|
||||
import io.wdd.rpc.scheduler.config.QuartzSchedulerUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -20,7 +20,7 @@ import java.util.List;
|
||||
public class AgentApplyScheduledScript {
|
||||
|
||||
@Resource
|
||||
CoreExecutionService coreExecutionService;
|
||||
AsyncExecutionService asyncExecutionService;
|
||||
|
||||
@Resource
|
||||
QuartzSchedulerUtils quartzSchedulerUtils;
|
||||
@@ -45,7 +45,7 @@ public class AgentApplyScheduledScript {
|
||||
}
|
||||
|
||||
// 发送命令到Agent中
|
||||
List<String> resultKeyList = coreExecutionService
|
||||
List<String> resultKeyList = asyncExecutionService
|
||||
.SendCommandToAgentComplete(
|
||||
targetMachineList,
|
||||
scriptType,
|
||||
|
||||
Reference in New Issue
Block a user