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 authored and Jason Song committed 2022-11-25 17:48:44 +08:00
1 parent 530faf7227
commit 6f18f76577
5 files changed
+8 -11

No files matched your search

-6
View File
@@ -2,7 +2,6 @@ package core
// BuildStatus represents a build status
type BuildStatus string
type RunnerStatus string
// enumerate all the statuses of bot build
const (
@@ -17,11 +16,6 @@ const (
StatusFailing BuildStatus = "failure"
StatusKilled BuildStatus = "killed"
StatusError BuildStatus = "error"
// Runner status
StatusIdle RunnerStatus = "idle"
StatusActive RunnerStatus = "active"
StatusOffline RunnerStatus = "offline"
)
func (status BuildStatus) IsPending() bool {