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-10-10 18:32:27 +08:00
committed by Jason Song
parent 530faf7227
commit 6f18f76577
5 changed files with 8 additions and 11 deletions

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 {