Merge pull request 'fix task list bugs' (#170) from tzwang/pcm-coordinator:master into master

Former-commit-id: 2e5c1028a1ae174b64648d61d0e6fe3de1f216b4
This commit is contained in:
tzwang 2024-05-14 08:50:21 +08:00
commit e4d9f0a5dd
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ func (l *PageListTaskLogic) updateAitaskStatus(tasks []*types.TaskModel, ch chan
return
}
if len(aiTask) == 0 {
continue
}
start, _ := time.ParseInLocation(constants.Layout, aiTask[0].StartTime, time.Local)
end, _ := time.ParseInLocation(constants.Layout, aiTask[0].EndTime, time.Local)