Browse Source

智算任务监控接口变动

Signed-off-by: zouap <zouap@pcl.ac.cn>
zouap
zouap 2 years ago
parent
commit
fa5e71fc54
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      routers/repo/grampus.go

+ 3
- 2
routers/repo/grampus.go View File

@@ -1,7 +1,6 @@
package repo

import (
"code.gitea.io/gitea/services/lock"
"encoding/json"
"errors"
"fmt"
@@ -12,6 +11,8 @@ import (
"strconv"
"strings"

"code.gitea.io/gitea/services/lock"

"code.gitea.io/gitea/modules/urfs_client/urchin"
"code.gitea.io/gitea/routers/response"

@@ -1456,7 +1457,7 @@ func GrampusMetrics(ctx *context.Context) {
}
ctx.JSON(http.StatusOK, map[string]interface{}{
"JobID": jobID,
"Interval": result.Interval,
"Interval": 0,
"MetricsInfo": result.MetricsInfo,
})



Loading…
Cancel
Save