Commit 21f219c1 authored by vicotor's avatar vicotor

add new field

parent 395cc975
......@@ -311,6 +311,7 @@ func (wm *WorkerManager) manageWorker(worker *Worker) error {
TaskFee: task.TaskFee,
TaskIsSucceed: false,
TaskError: "worker failed",
TaskExecuteDuration: result.TaskExecuteDuration,
}
receipt := wm.makeReceipt(worker, task, result, errors.New("worker failed"))
wm.node.PostResult(receipt)
......@@ -381,6 +382,7 @@ func (wm *WorkerManager) manageWorker(worker *Worker) error {
TaskFee: task.TaskFee,
TaskIsSucceed: true,
TaskError: "",
TaskExecuteDuration: result.TaskExecuteDuration,
}
go wm.doCallback(task.TaskCallback, taskResponse)
......
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