优化异步执行创建版本
This commit is contained in:
parent
0e8fb0ed0f
commit
39f7b05869
|
@ -738,7 +738,6 @@ public class ModelsServiceImpl implements ModelsService {
|
|||
modelDependency.setMeta(meta);
|
||||
modelDependency1Dao.insert(modelDependency);
|
||||
|
||||
dvcUtils.pushNewBranchToRemote(rootPath, gitLinkUsername, gitLinkPassword, branchName);
|
||||
CompletableFuture.supplyAsync(() -> {
|
||||
try {
|
||||
// 配置远程S3地址
|
||||
|
@ -749,6 +748,7 @@ 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) {
|
||||
|
|
Loading…
Reference in New Issue