优化异步执行创建版本
This commit is contained in:
parent
83c317b854
commit
0e8fb0ed0f
|
@ -214,7 +214,6 @@ 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,6 +224,7 @@ 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