Skip to content

Commit

Permalink
remove config file for dagPath
Browse files Browse the repository at this point in the history
Signed-off-by: wmqwxb <[email protected]>
  • Loading branch information
wmqwxb committed Dec 1, 2023
1 parent c098f3e commit 1f36382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,10 @@ public class JobDetailService {
@Value("${fateflow.url}")
String fateUrl;

@Value("${component.config.dir}")
String componentConfigPath;


public String getComponentStaticInfo(String componentName) throws Exception {
String projectDir = System.getProperty("user.dir");
String jsonData = "";
String yamlFilePath = componentConfigPath + File.separator + componentName + ".yaml";
String yamlFilePath = projectDir + File.separator + "dag" + File.separator +componentName + ".yaml";
File file = new File(yamlFilePath);
if (!file.exists()) {
logger.error("no this file find: {} ", yamlFilePath);
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ server.servlet.session.cookie.max-age=4h
management.endpoints.web.exposure.exclude=*
feign.client.config.default.connectTimeout=10000
feign.client.config.default.readTimeout=10000
component.config.dir=/data/projects/fate/fateboard/dag

0 comments on commit 1f36382

Please sign in to comment.