Commit 52549856 authored by duanjinfei's avatar duanjinfei

update get model info is nil

parent 1fd3bc69
......@@ -238,8 +238,10 @@ func (t *TaskWorker) GetAckResp(taskMsg *nodeManagerV1.PushTaskMessage) (isCanEx
}
isCanExecute = true
modelInfo := t.DockerOp.GetImageInfo(taskCmd.ImageName)
bootUpTime = modelInfo.StartUpTime
executeTime = modelInfo.EstimatExeTime
if modelInfo != nil {
bootUpTime = modelInfo.StartUpTime
executeTime = modelInfo.EstimatExeTime
}
return
}
......
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