Commit f4910887 authored by brent's avatar brent

modify Prediction

parent 3cf4394e
......@@ -602,7 +602,9 @@ func sendReplicate(task *models.Task, async bool) (*models.TaskResponse, error)
if err = json.Unmarshal(body, &response); err != nil {
setError(task, "Task response Unmarshal error:"+err.Error())
logs.Info("sendReplicate Error Unmarshal response:", err)
return nil, err
taskReturn.ExecError = string(body)
taskResponse.Task = taskReturn
return taskResponse, nil
}
if response.Urls.Get != "" || (model.Stream && response.Urls.Stream != "") {
//replicateTimeout, _ := beego.AppConfig.Int("replicateTimeout")
......
{"/Users/brent/Documents/wubanWork/aon_app_server/controllers":1723261526218747361}
\ No newline at end of file
{"/Users/brent/Documents/wubanWork/aon_app_server/controllers":1723333924719856567}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment