From 797cdfbdb86d69348a7b4e3b7d1125d9460b154b Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Fri, 18 Nov 2022 13:37:02 +0800 Subject: [PATCH] chore(runner): return task state. --- routers/api/bots/runner/runner.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routers/api/bots/runner/runner.go b/routers/api/bots/runner/runner.go index 4d373a7a42..eb41e986f8 100644 --- a/routers/api/bots/runner/runner.go +++ b/routers/api/bots/runner/runner.go @@ -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.