You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseRuntimeError(f"Health check for dependent_container '{dependent_container}' was requested, but container has no healthcheck implemented!")
904
+
print(f"Health of container '{dependent_container}': {health}.")
905
+
elifcondition=='service_started':
906
+
pass
907
+
else:
908
+
raiseRuntimeError(f"Unsupported condition in healthcheck for service '{service_name}': {condition}")
909
+
910
+
ifstate=='running'and'healthy'inhealth:
865
911
break
866
912
867
-
print(f"State of container '{dependent_container}': {state}. Waiting for 1 second")
868
-
self.custom_sleep(1)
913
+
print('Waiting for 1 second')
914
+
time.sleep(1)
869
915
time_waited+=1
870
916
871
-
ifstate!="running":
917
+
ifstate!='running':
872
918
raiseRuntimeError(f"Dependent container '{dependent_container}' of '{container_name}' is not running after waiting for {time_waited} sec! Consider checking your service configuration, the entrypoint of the container or the logs of the container.")
0 commit comments