Browse Source

update syncreportmessage error msg

pull/447/head
tzwang 8 months ago
parent
commit
56afa62bf9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      internal/scheduler/service/utils/status/taskStatusSync.go

+ 4
- 0
internal/scheduler/service/utils/status/taskStatusSync.go View File

@@ -62,8 +62,11 @@ func UpdateTaskStatus(svc *svc.ServiceContext, tasklist []*types.TaskModel) {
return
}

logx.Errorf("############ Report Status Message Before switch %s", task.Status)
if len(aiTask) == 1 {
logx.Errorf("############ Report Status Message Switch %s", aiTask[0].Status)
switch aiTask[0].Status {

case constants.Completed:
task.Status = constants.Succeeded
logx.Errorf("############ Report Status Message Before Sending %s", task.Status)
@@ -86,6 +89,7 @@ func UpdateTaskStatus(svc *svc.ServiceContext, tasklist []*types.TaskModel) {
}
return
}
logx.Errorf("############ Report Status Message After switch %s", task.Status)

for i := len(aiTask) - 1; i >= 0; i-- {
if aiTask[i].StartTime == "" {


Loading…
Cancel
Save