Commit 5086d64a authored by vicotor's avatar vicotor

update

parent 3683f6cd
......@@ -111,6 +111,7 @@ func (n *Node) Loop(idx int) {
receipt.TaskDuration = (time.Now().UnixNano() - int64(task.TaskTimestamp)) / 1000
receipt.TaskFee = 0
receipt.TaskOutLen = 0
receipt.TaskExecuteDuration = 0
receipt.TaskProfitAccount = ""
receipt.TaskWorkerAccount = ""
switch err {
......@@ -138,12 +139,11 @@ func (n *Node) Loop(idx int) {
worker, err := PopWorker(n.rdb)
if err == ErrNoWorker {
result := &odysseus.TaskResponse{
TaskUuid: task.TaskUuid,
TaskUid: task.TaskUid,
TaskFee: task.TaskFee,
TaskIsSucceed: false,
TaskError: err.Error(),
TaskExecuteDuration: 0,
TaskUuid: task.TaskUuid,
TaskUid: task.TaskUid,
TaskFee: task.TaskFee,
TaskIsSucceed: false,
TaskError: err.Error(),
}
postReceipt(task, result, err)
err = postResult(task, result)
......
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