fix: reconciled status names between server/agent/vscode-codeql

This commit is contained in:
Michael Hohn
2025-03-14 12:45:36 -07:00
committed by =Michael Hohn
parent f066c767e2
commit 2409728960
4 changed files with 28 additions and 23 deletions

View File

@@ -3,9 +3,10 @@ package state
import (
"fmt"
"log/slog"
"sync"
"github.com/hohn/mrvacommander/pkg/common"
"github.com/hohn/mrvacommander/pkg/queue"
"sync"
)
type LocalState struct {
@@ -97,7 +98,7 @@ func (s *LocalState) GetStatus(js common.JobSpec) (common.Status, error) {
s.mutex.Lock()
defer s.mutex.Unlock()
if _, ok := s.status[js]; !ok {
return common.StatusError, fmt.Errorf("status not found for job spec %v", js)
return common.StatusFailed, fmt.Errorf("status not found for job spec %v", js)
}
return s.status[js], nil
}