chore(runner): return task state.

This commit is contained in:
Bo-Yi Wu 2022-11-18 13:37:02 +08:00 committed by Jason Song
parent 0f5aab0c1a
commit 797cdfbdb8

View File

@ -220,7 +220,12 @@ func (s *Service) UpdateTask(
} }
} }
return connect.NewResponse(&runnerv1.UpdateTaskResponse{}), nil return connect.NewResponse(&runnerv1.UpdateTaskResponse{
State: &runnerv1.TaskState{
Id: req.Msg.State.Id,
Result: task.Status.AsResult(),
},
}), nil
} }
// UpdateLog uploads log of the task. // UpdateLog uploads log of the task.