forked from JointCloud/pcm-coordinator
提交超算任务上链
This commit is contained in:
parent
fffa8f1d7e
commit
c4963f2a41
|
@ -93,12 +93,6 @@ func (l *CommitHpcTaskLogic) CommitHpcTask(req *types.CommitHpcTaskReq) (resp *t
|
||||||
if tx.Error != nil {
|
if tx.Error != nil {
|
||||||
return nil, tx.Error
|
return nil, tx.Error
|
||||||
}
|
}
|
||||||
// 提交job到指定集群
|
|
||||||
logx.Info("提交job到指定集群")
|
|
||||||
go func() {
|
|
||||||
submitJob(&hpcInfo, &clusterInfo, server)
|
|
||||||
}()
|
|
||||||
|
|
||||||
// 保存操作记录
|
// 保存操作记录
|
||||||
noticeInfo := clientCore.NoticeInfo{
|
noticeInfo := clientCore.NoticeInfo{
|
||||||
AdapterId: clusterInfo.AdapterId,
|
AdapterId: clusterInfo.AdapterId,
|
||||||
|
@ -128,6 +122,11 @@ func (l *CommitHpcTaskLogic) CommitHpcTask(req *types.CommitHpcTaskReq) (resp *t
|
||||||
Token: req.Token,
|
Token: req.Token,
|
||||||
Args: []string{strconv.FormatInt(taskModel.Id, 10), string(bytes)},
|
Args: []string{strconv.FormatInt(taskModel.Id, 10), string(bytes)},
|
||||||
})
|
})
|
||||||
|
// 提交job到指定集群
|
||||||
|
logx.Info("提交job到指定集群")
|
||||||
|
go func() {
|
||||||
|
submitJob(&hpcInfo, &clusterInfo, server)
|
||||||
|
}()
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue