|
|
@@ -159,7 +159,7 @@ func asyncToCopyModel(aiTask *models.Cloudbrain, id string, modelSelectedFile st |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func updateStatus(id string, modelSize int64, status int, modelPath string) { |
|
|
func updateStatus(id string, modelSize int64, status int, modelPath string) { |
|
|
err := models.ModifyModelStatus(id, modelSize, STATUS_FINISHED, modelPath) |
|
|
|
|
|
|
|
|
err := models.ModifyModelStatus(id, modelSize, status, modelPath) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Info("update status error." + err.Error()) |
|
|
log.Info("update status error." + err.Error()) |
|
|
} |
|
|
} |
|
|
|