()
| 121 | } |
| 122 | |
| 123 | func handleRecordStatus() { |
| 124 | _ = global.DB.Model(&model.BackupRecord{}).Where("status = ?", constant.StatusWaiting).Updates(map[string]interface{}{ |
| 125 | "status": constant.StatusFailed, |
| 126 | "message": constant.InterruptedMsg, |
| 127 | }).Error |
| 128 | } |
| 129 | |
| 130 | func handleOllamaModelStatus() { |
| 131 | _ = global.DB.Model(&model.OllamaModel{}).Where("status = ?", constant.StatusWaiting).Updates(map[string]interface{}{ |