mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-18 01:20:01 +02:00
Fix service_healthy condition enforcing
Skip dependency health check to avoid compose-up hang for podman prior to 4.6.0, which doesn't support --condition healthy. Signed-off-by: Justin Zhang <schnell18@gmail.com>
This commit is contained in:
committed by
Povilas Kanapickas
parent
eba2ca2695
commit
d7762a54f0
@@ -2815,6 +2815,18 @@ async def check_dep_conditions(compose: PodmanCompose, deps: set) -> None:
|
||||
deps_cd = []
|
||||
for d in deps:
|
||||
if d.condition == condition:
|
||||
if (
|
||||
d.condition
|
||||
in (ServiceDependencyCondition.HEALTHY, ServiceDependencyCondition.UNHEALTHY)
|
||||
) and strverscmp_lt(compose.podman_version, "4.6.0"):
|
||||
log.warning(
|
||||
"Ignored %s condition check due to podman %s doesn't support %s!",
|
||||
d.name,
|
||||
compose.podman_version,
|
||||
condition.value,
|
||||
)
|
||||
continue
|
||||
|
||||
deps_cd.extend(compose.container_names_by_service[d.name])
|
||||
|
||||
if deps_cd:
|
||||
|
Reference in New Issue
Block a user