Commit 68b1d9d1 authored by duanjinfei's avatar duanjinfei

add model pull log

parent 944d6052
......@@ -64,9 +64,11 @@ func monitorModelInfo(dockerOp *operate.DockerOp) {
isPull := isResourceEnough(modelInfo)
// todo: 如果够用
if isPull && modelInfo.PublishStatus == models.ModelPublishStatusYes {
log.WithField("model image name", modelInfo.ImageName).Info("pulling image")
go dockerOp.PullImage(modelInfo)
}
} else {
log.WithField("name", modelInfo.ImageName).Info("The image name is already")
reportTaskIds = append(reportTaskIds, modelInfo.TaskId)
if modelInfo.TaskId > maxLong {
maxLong = modelInfo.TaskId
......
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