Skip to content

Commit

Permalink
fix louislam#4369 - treat unhealthy docker container as down
Browse files Browse the repository at this point in the history
  • Loading branch information
vfosnar authored and louislam committed Jan 19, 2024
1 parent b4e45c7 commit d736841
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/model/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,10 @@ class Monitor extends BeanModel {
let res = await axios.request(options);

if (res.data.State.Running) {
if (res.data.State.Health && res.data.State.Health.Status !== "healthy") {
if (res.data.State.Health && res.data.State.Health.Status === "unhealthy") {
bean.status = DOWN;
bean.msg = res.data.State.Health.Status;
} else if (res.data.State.Health && res.data.State.Health.Status !== "healthy") {
bean.status = PENDING;
bean.msg = res.data.State.Health.Status;
} else {
Expand Down

0 comments on commit d736841

Please sign in to comment.