mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
When the inspection of an optional (required: false) dependency fails, the dependency is reported as skipped and the wait succeeds. That also happened when the failure came from the wait's context being done: a cancellation was reported as a skipped dependency, and an expired deadline (the wait timeout, or one inherited from the caller) was turned into a successful wait, unlike the same deadline expiring between two polls. A check failing while its context is done now reports "not done yet" for an optional dependency, so that waitDependency decides what the end of the wait means. Genuine inspection errors still skip the dependency, and a required dependency is handled as before. Signed-off-by: Nicolas De Loof <[email protected]>