Commit 39a1f7e0 authored by duanjinfei's avatar duanjinfei

update healthyCheckResp statuCode is StatusNotFound

parent 1e1d2d95
...@@ -655,6 +655,9 @@ func (t *TaskHandler) checkContainerHealthy(internalIp string, internalPort uint ...@@ -655,6 +655,9 @@ func (t *TaskHandler) checkContainerHealthy(internalIp string, internalPort uint
t.ExecTaskIdIsSuccess.Store(taskMsg.TaskId, true) t.ExecTaskIdIsSuccess.Store(taskMsg.TaskId, true)
return false return false
} }
if healthyCheckResp.StatusCode == http.StatusNotFound {
return true
}
body, err := io.ReadAll(healthyCheckResp.Body) body, err := io.ReadAll(healthyCheckResp.Body)
m := &models.HealthyCheck{} m := &models.HealthyCheck{}
err = json.Unmarshal(body, m) err = json.Unmarshal(body, m)
......
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