feat(backend): implement service monitor proto & connect it to http /agents
ci-agent / build (push) Failing after 2m30s
ci-agent / build (push) Failing after 2m30s
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user