优化创建版本
This commit is contained in:
parent
24a51f4ead
commit
68d09fa06d
|
@ -738,6 +738,7 @@ public class ModelsServiceImpl implements ModelsService {
|
|||
modelDependency.setMeta(meta);
|
||||
modelDependency1Dao.insert(modelDependency);
|
||||
|
||||
dvcUtils.pushNewBranchToRemote(rootPath, gitLinkUsername, gitLinkPassword, branchName);
|
||||
CompletableFuture.supplyAsync(() -> {
|
||||
try {
|
||||
// 配置远程S3地址
|
||||
|
@ -748,7 +749,6 @@ public class ModelsServiceImpl implements ModelsService {
|
|||
dvcUtils.dvcConfigS3Credentials3(rootPath, secretAccessKey);
|
||||
// dvc 跟踪
|
||||
dvcUtils.dvcAdd(rootPath, "model");
|
||||
dvcUtils.pushNewBranchToRemote(rootPath, gitLinkUsername, gitLinkPassword, branchName);
|
||||
//dvc push 到远程S3
|
||||
dvcUtils.dvcPush(rootPath);
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -214,7 +214,7 @@ public class NewDatasetServiceImpl implements NewDatasetService {
|
|||
addDatasetSourceToDataVo(datasetVo);
|
||||
|
||||
YamlUtils.generateYamlFile(JsonUtils.objectToMap(datasetVo), localPath, "dataset");
|
||||
|
||||
dvcUtils.pushNewBranchToRemote(localPath, gitLinkUsername, gitLinkPassword, branchName);
|
||||
CompletableFuture.supplyAsync(() -> {
|
||||
try {
|
||||
//dvc数据跟踪
|
||||
|
@ -225,7 +225,6 @@ public class NewDatasetServiceImpl implements NewDatasetService {
|
|||
dvcUtils.dvcConfigS3Credentials3(localPath, secretAccessKey);
|
||||
// dvc 跟踪
|
||||
dvcUtils.dvcAdd(localPath, "dataset");
|
||||
dvcUtils.pushNewBranchToRemote(localPath, gitLinkUsername, gitLinkPassword, branchName);
|
||||
//dvc push 到远程S3
|
||||
dvcUtils.dvcPush(localPath);
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in New Issue