mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-12-26 18:15:57 +08:00
feat: add err_msg field for mj and sd jobs
This commit is contained in:
@@ -217,7 +217,10 @@ func (p *ServicePool) SyncTaskProgress() {
|
||||
}
|
||||
// 任务失败了
|
||||
if task.FailReason != "" {
|
||||
p.db.Model(&model.MidJourneyJob{Id: v.Id}).UpdateColumn("progress", -1)
|
||||
p.db.Model(&model.MidJourneyJob{Id: v.Id}).UpdateColumns(map[string]interface{}{
|
||||
"progress": -1,
|
||||
"err_msg": task.FailReason,
|
||||
})
|
||||
continue
|
||||
}
|
||||
if len(task.Buttons) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user