|
|
|
@@ -74,6 +74,7 @@ func UpdateHpcTaskStatus(svc *svc.ServiceContext) { |
|
|
|
svc.Scheduler.HpcStorages.AddNoticeInfo(strconv.FormatInt(hpc.AdapterId, 10), hpc.AdapterName, strconv.FormatInt(hpc.ClusterId, 10), hpc.ClusterName, hpc.Name, "failed", "任务失败") |
|
|
|
hpc.Status = hpcTask.Status |
|
|
|
task.Status = hpcTask.Status |
|
|
|
log.Info().Msgf("[%v]:任务执行失败,发送通知, 任务状态: [%v]", hpcTask, hpcTask.Status) |
|
|
|
_ = reportHpcStatusMessages(svc, task, hpc, false, "任务失败") |
|
|
|
} |
|
|
|
case constants.Completed: |
|
|
|
@@ -81,6 +82,7 @@ func UpdateHpcTaskStatus(svc *svc.ServiceContext) { |
|
|
|
svc.Scheduler.HpcStorages.AddNoticeInfo(strconv.FormatInt(hpc.AdapterId, 10), hpc.AdapterName, strconv.FormatInt(hpc.ClusterId, 10), hpc.ClusterName, hpc.Name, "completed", "任务完成") |
|
|
|
hpc.Status = hpcTask.Status |
|
|
|
task.Status = hpcTask.Status |
|
|
|
log.Info().Msgf("[%v]:任务执行完成,发送通知, 任务状态: [%v]", hpcTask, hpcTask.Status) |
|
|
|
_ = reportHpcStatusMessages(svc, task, hpc, true, "任务完成") |
|
|
|
} |
|
|
|
default: |
|
|
|
|