refactor: move build status to core package

This commit is contained in:
Bo-Yi.Wu
2022-09-03 16:48:03 +08:00
committed by Jason Song
parent ea0cf8515e
commit 1148903d79
7 changed files with 56 additions and 50 deletions

View File

@ -100,7 +100,7 @@ func (q *queue) signal(ctx context.Context) error {
q.Lock()
defer q.Unlock()
for _, item := range items {
if item.Status == bots.StatusRunning {
if item.Status == core.StatusRunning {
continue
}
if item.Machine != "" {