Skip to content

Commit 795ed07

Browse files
committed
Add configuration properties guide.sync.model in dss-guide-server.properties
1 parent e9946a0 commit 795ed07

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dss-apps/dss-user-guide/dss-user-guide-server/src/main/java/com/webank/wedatasphere/dss/guide/server/restful/KnowledgeGuideAdminRestful.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,10 @@ public void syncKnowledge() {
225225
//拷贝文件到相应节点
226226
ShellUtils.callShellByExec(scpCommand);
227227
}
228+
}else {
229+
guideCatalogService.syncKnowledge(summaryPath, GuideConf.SUMMARY_IGNORE_MODEL.getValue());
230+
guideGroupService.asyncGuide(summaryPath, GuideConf.SUMMARY_IGNORE_MODEL.getValue());
228231
}
229-
guideCatalogService.syncKnowledge(summaryPath, GuideConf.SUMMARY_IGNORE_MODEL.getValue());
230-
guideGroupService.asyncGuide(summaryPath, GuideConf.SUMMARY_IGNORE_MODEL.getValue());
231232
} catch (Exception e) {
232233
logger.error("定时任务执行异常:" + e);
233234
throw new RuntimeException(e);

0 commit comments

Comments
 (0)