Commit 58123d00 authored by duanjinfei's avatar duanjinfei

update sync mao load taskId error

parent ac8fe82c
...@@ -115,7 +115,12 @@ func (t *TaskHandler) ComputeTaskHandler(taskMsg *nodeManagerV1.PushTaskMessage) ...@@ -115,7 +115,12 @@ func (t *TaskHandler) ComputeTaskHandler(taskMsg *nodeManagerV1.PushTaskMessage)
oldTaskId = taskMsg.TaskId oldTaskId = taskMsg.TaskId
break break
} }
value, _ := t.ExecTaskIdIsSuccess.Load(oldTaskId) value, ok := t.ExecTaskIdIsSuccess.Load(oldTaskId)
log.WithField("isSuccess", value).Info("Task id exec info")
if !ok {
log.Warn("First exec task")
break
}
isSuccess := value.(bool) isSuccess := value.(bool)
if isSuccess { if isSuccess {
oldTaskId = taskMsg.TaskId oldTaskId = taskMsg.TaskId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment