Skip to content

Commit

Permalink
fix a bug - return status for containerized service (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaqin1 authored Mar 27, 2024
1 parent ea20331 commit 3b8e116
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deploy-agent/deployd/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,10 @@ def get_container_health_info(commit, service, redeploy) -> Optional[str]:
elif returnValue and "unhealthy" not in returnValue:
send_statsboard_metric(name='deployd.service_health_status', value=1,
tags={"status": "healthy", "service": service, "commit": commit})
# if no check happens for the current service, check if it is a non container with healthcheck enabled
return redeploy_check_without_container_status(commit, service, redeploy)
if returnValue:
return returnValue
# if no check happens for the current service, check if it is a non container with healthcheck enabled
return redeploy_check_without_container_status(commit, service, redeploy)
except:
log.error(f"Failed to get container health info with commit {commit}")
return None
Expand Down

0 comments on commit 3b8e116

Please sign in to comment.