Commit d036bf25 authored by vicotor's avatar vicotor

update

parent d4bda8fa
......@@ -141,9 +141,18 @@ func (w *Worker) doGoodBye(msg *omanager.WorkerMessage_GoodbyeMessage) {
}
func (w *Worker) doSubmitAck(msg *omanager.WorkerMessage_SubmitTaskAck) {
log.WithFields(log.Fields{
"worker-addr": w.workerAddr,
"task-id": msg.SubmitTaskAck.TaskId,
}).Debug("receive worker submit task ack")
if v, ok := w.recentTask.Get(msg.SubmitTaskAck.TaskId); ok {
dtask := v.(*dispatchTask)
dtask.setAck(msg.SubmitTaskAck)
} else {
log.WithFields(log.Fields{
"worker-addr": w.workerAddr,
"task-id": msg.SubmitTaskAck.TaskId,
}).Warn("ack not found task")
}
}
......
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