#3945 #3923

Merged
chenyifan01 merged 1 commits from fix-3923 into V20230322.patch 1 year ago
  1. +1
    -1
      routers/api/v1/api.go
  2. +1
    -1
      routers/api/v1/repo/modelarts.go

+ 1
- 1
routers/api/v1/api.go View File

@@ -1053,7 +1053,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Put("/stop", cloudbrain.AdminOrOwnerOrJobCreaterRightForTrain, repo.GeneralCloudBrainJobStop)
m.Group("/model", func() {
m.Get("/schedule_status", repo.GetModelScheduleStatus)
m.Post("/reschedule", repo.TetryModelSchedule)
m.Post("/reschedule", cloudbrain.AdminOrOwnerOrJobCreaterRightForTrain, repo.RetryModelSchedule)
})
})
})


+ 1
- 1
routers/api/v1/repo/modelarts.go View File

@@ -196,7 +196,7 @@ func GetModelScheduleStatus(ctx *context.APIContext) {
ctx.JSON(http.StatusOK, response.OuterSuccessWithData(m))
}

func TetryModelSchedule(ctx *context.APIContext) {
func RetryModelSchedule(ctx *context.APIContext) {
jobID := ctx.Params(":jobid")
err := schedule.RetryModelMigrate(jobID)
if err != nil {


Loading…
Cancel
Save