feat(backend): implement service monitor proto & connect it to http /agents
ci-agent / build (push) Failing after 2m30s

This commit is contained in:
2026-04-04 19:59:32 +03:00
parent 1d75935a08
commit 4ea1aec6e2
8 changed files with 99 additions and 15 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ import (
"errors"
"fmt"
"net/http"
"os"
"os/exec"
"gitea.d3m0k1d.ru/d3m0k1d/HellreigN/backend/internal/grpcsrv/commander"
@@ -82,7 +81,7 @@ func (self *JobsHandlers) AddJob(c *gin.Context) {
return err
}
job, err := agent.WaitJob(jid)
if err != nil && !errors.Is(err, &exec.ExitError{}) {
if err != nil && !errors.As(err, &exec.ExitError{}) {
return err
}
c.JSON(http.StatusCreated, AddJobOut{