Skip to content

Commit 0fc3ae3

Browse files
committed
dss-server: fix export4
1 parent d796ddc commit 0fc3ae3

File tree

1 file changed

+2
-4
lines changed
  • dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/io/export/impl

1 file changed

+2
-4
lines changed

dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/io/export/impl/WorkFlowExportServiceImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,6 @@ public class WorkFlowExportServiceImpl implements WorkFlowExportService {
103103
@Autowired
104104
private DSSFlowService flowService;
105105

106-
protected Sender getOrchestratorSender() {
107-
return DSSSenderServiceFactory.getOrCreateServiceInstance().getOrcSender();
108-
}
109106

110107

111108
@Override
@@ -127,7 +124,8 @@ public String exportFlowInfoNew(Long dssProjectId, String projectName, long root
127124
for (DSSFlow dssFlow : dssFlowList) {
128125
if (dssFlow.getRootFlow()) {
129126
// 生成rootflow orchestrator信息
130-
OrchestratorVo orchestratorVo = RpcAskUtils.processAskException(getOrchestratorSender().ask(new RequestQuertByAppIdOrchestrator(dssFlow.getId())),
127+
Sender orcSender = DSSSenderServiceFactory.getOrCreateServiceInstance().getOrcSender(dssLabels);
128+
OrchestratorVo orchestratorVo = RpcAskUtils.processAskException(orcSender.ask(new RequestQuertByAppIdOrchestrator(dssFlow.getId())),
131129
OrchestratorVo.class, RequestQueryByIdOrchestrator.class);
132130
DSSOrchestratorInfo dssOrchestratorInfo = orchestratorVo.getDssOrchestratorInfo();
133131
String flowMetaPath = IoUtils.generateFlowMetaIOPath(projectPath, dssOrchestratorInfo.getName());

0 commit comments

Comments
 (0)