优化异步执行创建版本
This commit is contained in:
parent
0e8fb0ed0f
commit
39f7b05869
|
@ -738,7 +738,6 @@ public class ModelsServiceImpl implements ModelsService {
|
||||||
modelDependency.setMeta(meta);
|
modelDependency.setMeta(meta);
|
||||||
modelDependency1Dao.insert(modelDependency);
|
modelDependency1Dao.insert(modelDependency);
|
||||||
|
|
||||||
dvcUtils.pushNewBranchToRemote(rootPath, gitLinkUsername, gitLinkPassword, branchName);
|
|
||||||
CompletableFuture.supplyAsync(() -> {
|
CompletableFuture.supplyAsync(() -> {
|
||||||
try {
|
try {
|
||||||
// 配置远程S3地址
|
// 配置远程S3地址
|
||||||
|
@ -749,6 +748,7 @@ public class ModelsServiceImpl implements ModelsService {
|
||||||
dvcUtils.dvcConfigS3Credentials3(rootPath, secretAccessKey);
|
dvcUtils.dvcConfigS3Credentials3(rootPath, secretAccessKey);
|
||||||
// dvc 跟踪
|
// dvc 跟踪
|
||||||
dvcUtils.dvcAdd(rootPath, "model");
|
dvcUtils.dvcAdd(rootPath, "model");
|
||||||
|
dvcUtils.pushNewBranchToRemote(rootPath, gitLinkUsername, gitLinkPassword, branchName);
|
||||||
//dvc push 到远程S3
|
//dvc push 到远程S3
|
||||||
dvcUtils.dvcPush(rootPath);
|
dvcUtils.dvcPush(rootPath);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue