File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
services/api-server/src/simcore_service_api_server/core Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,9 @@ async def teardown(self):
6969
7070 @property
7171 def healthy (self ) -> bool :
72- return self ._health_check_failure_count <= self ._allowed_health_check_failures
72+ return self ._rabbit_client .healthy and (
73+ self ._health_check_failure_count <= self ._allowed_health_check_failures
74+ ) # https://github.com/ITISFoundation/osparc-simcore/pull/6662
7375
7476 @property
7577 def health_check_failure_count (self ) -> NonNegativeInt :
@@ -82,9 +84,6 @@ async def _background_task_method(self):
8284 while self ._dummy_queue .qsize () > 0 :
8385 _ = self ._dummy_queue .get_nowait ()
8486 try :
85- if not self ._rabbit_client .healthy :
86- self ._increment_health_check_failure_count ()
87- return
8887 await asyncio .wait_for (
8988 self ._rabbit_client .publish (
9089 self ._dummy_message .channel_name , self ._dummy_message
You can’t perform that action at this time.
0 commit comments