Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix healthcheck in api-server #6662

Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ async def teardown(self):

@property
def healthy(self) -> bool:
return self._health_check_failure_count <= self._allowed_health_check_failures
return self._rabbit_client.healthy and (
bisgaard-itis marked this conversation as resolved.
Show resolved Hide resolved
self._health_check_failure_count <= self._allowed_health_check_failures
) # https://github.com/ITISFoundation/osparc-simcore/pull/6662

@property
def health_check_failure_count(self) -> NonNegativeInt:
Expand All @@ -82,9 +84,6 @@ async def _background_task_method(self):
while self._dummy_queue.qsize() > 0:
_ = self._dummy_queue.get_nowait()
try:
if not self._rabbit_client.healthy:
self._increment_health_check_failure_count()
return
await asyncio.wait_for(
self._rabbit_client.publish(
self._dummy_message.channel_name, self._dummy_message
Expand Down
Loading