Commit a92c8a63 authored by duanjinfei's avatar duanjinfei

update wait container start up

parent a6c8b5af
......@@ -540,7 +540,8 @@ func (op *TaskOp) waitReqContainerOk(dockerOp *operate.DockerOp) error {
post, err := op.httpClient.Do(op.request)
if err != nil {
log.WithField("error:", err).Error("Http client post request container failed")
return fmt.Errorf("%s,%s", "Http client post request container failed", err.Error())
//return fmt.Errorf("%s,%s", "Http client post request container failed", err.Error())
continue
}
log.WithField("StatusCode", post.StatusCode).WithField("taskId", op.taskMsg.TaskId).Info("Exec task result")
if post.StatusCode == http.StatusOK {
......
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