diff --git a/api/internal/logic/core/pagelisttasklogic.go b/api/internal/logic/core/pagelisttasklogic.go index 52ad4171..29e5d000 100644 --- a/api/internal/logic/core/pagelisttasklogic.go +++ b/api/internal/logic/core/pagelisttasklogic.go @@ -57,9 +57,9 @@ func (l *PageListTaskLogic) PageListTask(req *types.PageTaskReq) (resp *types.Pa } // 更新智算任务状态 - chs := [2]chan struct{}{make(chan struct{}), make(chan struct{})} - go l.updateTaskStatus(list, chs[0]) - go l.updateAiTaskStatus(list, chs[1]) + //chs := [2]chan struct{}{make(chan struct{}), make(chan struct{})} + //go l.updateTaskStatus(list, chs[0]) + //go l.updateAiTaskStatus(list, chs[1]) for _, model := range list { if model.StartTime != "" && model.EndTime == "" { @@ -77,12 +77,12 @@ func (l *PageListTaskLogic) PageListTask(req *types.PageTaskReq) (resp *types.Pa resp.PageNum = req.PageNum resp.Total = total - for _, ch := range chs { - select { - case <-ch: - case <-time.After(1 * time.Second): - } - } + //for _, ch := range chs { + // select { + // case <-ch: + // case <-time.After(1 * time.Second): + // } + //} return }