From 8ab47f190acaa7eb722f035f108648400c432446 Mon Sep 17 00:00:00 2001 From: David Vilela Date: Wed, 19 Jun 2024 17:48:02 +0200 Subject: [PATCH] fix: update heartbeat --- operate/services/manage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/operate/services/manage.py b/operate/services/manage.py index b14b57a1a..2014e6afe 100644 --- a/operate/services/manage.py +++ b/operate/services/manage.py @@ -930,7 +930,7 @@ async def healthcheck_job( failed_health_checks += 1 else: failed_health_checks = 0 - if failed_health_checks >= 5: + if failed_health_checks >= 4: self.stop_service_locally(hash=hash) self.deploy_service_locally(hash=hash) @@ -938,7 +938,7 @@ async def healthcheck_job( logging.info( f"Error occured while checking the service health\n{traceback.format_exc()}" ) - await asyncio.sleep(60) + await asyncio.sleep(30) def deploy_service_locally(self, hash: str, force: bool = True) -> Deployment: """