From 15fd07ce3d50121b3db00eae005e09345a186ec7 Mon Sep 17 00:00:00 2001 From: chenyifan01 Date: Tue, 4 Apr 2023 14:52:50 +0800 Subject: [PATCH] =?UTF-8?q?#3923=20=E6=B7=BB=E5=8A=A0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/api/v1/api.go | 2 +- routers/api/v1/repo/modelarts.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go index 907f013db6..ed63133aca 100755 --- a/routers/api/v1/api.go +++ b/routers/api/v1/api.go @@ -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) }) }) }) diff --git a/routers/api/v1/repo/modelarts.go b/routers/api/v1/repo/modelarts.go index b7c4b77ed6..b70e6676f8 100755 --- a/routers/api/v1/repo/modelarts.go +++ b/routers/api/v1/repo/modelarts.go @@ -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 { -- 2.34.1