chore(runner): update runner status using proto define

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi.Wu
2022-11-25 17:48:44 +08:00
committed by Jason Song
parent 530faf7227
commit 6f18f76577
5 changed files with 8 additions and 11 deletions
+2 -1
View File
@@ -96,7 +96,7 @@ func (s *Service) Register(
OwnerID: runnerToken.OwnerID,
RepoID: runnerToken.RepoID,
Token: req.Msg.Token,
Status: core.StatusOffline,
Status: runnerv1.RunnerStatus_RUNNER_STATUS_OFFLINE,
AgentLabels: req.Msg.AgentLabels,
CustomLabels: req.Msg.CustomLabels,
}
@@ -119,6 +119,7 @@ func (s *Service) Register(
Name: runner.Name,
AgentLabels: runner.AgentLabels,
CustomLabels: runner.CustomLabels,
Status: runner.Status,
},
})