Browse Source

Merge pull request '提交超算任务上链' (#426) from zhangweiii/pcm-coordinator:master into master

pull/427/head
zhangweiii 8 months ago
parent
commit
7d68ab7b05
1 changed files with 5 additions and 6 deletions
  1. +5
    -6
      internal/logic/hpc/commithpctasklogic.go

+ 5
- 6
internal/logic/hpc/commithpctasklogic.go View File

@@ -93,12 +93,6 @@ func (l *CommitHpcTaskLogic) CommitHpcTask(req *types.CommitHpcTaskReq) (resp *t
if tx.Error != nil {
return nil, tx.Error
}
// 提交job到指定集群
logx.Info("提交job到指定集群")
go func() {
submitJob(&hpcInfo, &clusterInfo, server)
}()

// 保存操作记录
noticeInfo := clientCore.NoticeInfo{
AdapterId: clusterInfo.AdapterId,
@@ -128,6 +122,11 @@ func (l *CommitHpcTaskLogic) CommitHpcTask(req *types.CommitHpcTaskReq) (resp *t
Token: req.Token,
Args: []string{strconv.FormatInt(taskModel.Id, 10), string(bytes)},
})
// 提交job到指定集群
logx.Info("提交job到指定集群")
go func() {
submitJob(&hpcInfo, &clusterInfo, server)
}()
return resp, nil
}



Loading…
Cancel
Save